说明
changelog(2019-06-30)
- 优化了同步滚动
- 预览patch更新
- 优化了移动端的表现
- 只需要下载一个额外的jar包放到编辑器根目录即可使用七牛云文件上传和h2数据库存储
下载
https://github.com/mhlx/markdown-editor/releases/latest
Github
https://github.com/mhlx/markdown-editor
文档
https://www.qyh.me/document/markdowneditor
支持的markdown语法
粗体
内容
内容
斜体
内容
内容
链接
图片
[外链图片转存失败(img-FZWplmjw-1562291636831)(https://www.qyh.me/image/dog/1CF5396B-CF07-474C-A0D9-46707571633A.jpeg/200 “狗肉”)]
段落
有序
- one
- two
无序
- A list item.
- bar
嵌套
- Abacus
- anser
- Bubbles
- bunk
- bupkis
- bar
- burper
- Cunning
引用
内容
水平线
表格
A | B | C |
---|---|---|
左对齐 | 居中对齐 | 右对齐 |
锚点
脚注
Markdown1
代码
public static void main(String [] args){}
public static void main(String [] args)
{
}
public static void main(String []args){
}
KaTeX
通过KaTeX来渲染LaTex
Inline: Γ ( n ) = ( n − 1 ) ! ∀ n ∈ N \Gamma(n) = (n-1)!\quad\forall n\in\mathbb N Γ(n)=(n−1)!∀n∈N
Block:
Γ
(
z
)
=
∫
0
∞
t
z
−
1
e
−
t
d
t
 
.
\Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,.
Γ(z)=∫0∞tz−1e−tdt.
到这里了解更多
mermaid图表
流程图
时序图
甘特图
具体的使用方法请看这里
感谢
- 使用CodeMirror作为编辑器
- 使用fontawesome美化图标
- 使用highlightjs高亮代码
- 使用jQuery简化dom操作
- 使用sweet2alert作为弹窗提醒
- 使用markdown-it来渲染markdown
- 使用jQuery File Upload来上传文件
- 使用turndown将html转化为markdown
- 使用mermaid渲染流程图、时序图以及甘特图
- 使用morphdom来path更新预览
- 使用katex渲染数学公式
- 使用simplebar美化滚动条
内容 ↩︎