# 欢迎使用 Markdown在线编辑器 MdEditor **Markdown是一种轻量级的「标记语言」**
` 预格式化文本 ( Preformatted Text ) 的功能。 预格式化文本: | First Header | Second Header | | ------------- | ------------- | | Content Cell | Content Cell | | Content Cell | Content Cell | #### JS代码 ```javascript function test() { console.log("Hello world!"); } ``` #### HTML 代码 HTML codes ```htmlHello world! Hello world!
Plain text
``` ### 图片 Images 图片加链接 (Image + Link): [](image/markdown.jpg "markdown") > Follow your heart. ---- ### 列表 Lists #### 无序列表(减号)Unordered Lists (-) - 列表一 - 列表二 - 列表三 #### 无序列表(星号)Unordered Lists (*) * 列表一 * 列表二 * 列表三 #### 无序列表(加号和嵌套)Unordered Lists (+) + 列表一 + 列表二 + 列表二-1 + 列表二-2 + 列表二-3 + 列表三 * 列表一 * 列表二 * 列表三 #### 有序列表 Ordered Lists (-) 1. 第一行 2. 第二行 3. 第三行 #### GFM task list - [x] GFM task list 1 - [x] GFM task list 2 - [ ] GFM task list 3 - [ ] GFM task list 3-1 - [ ] GFM task list 3-2 - [ ] GFM task list 3-3 - [ ] GFM task list 4 - [ ] GFM task list 4-1 - [ ] GFM task list 4-2 ---- ### 绘制表格 Tables #####例子1 | 项目 | 价格 | 数量 | | :-------- | :----- | ----: | | 计算机 | $1600 | 5 | | 手机 | $12 | 12 | | 管线 | $1 | 234 | #####例子2 First Header | Second Header ------------- | ------------- Content Cell | Content Cell Content Cell | Content Cell #####例子3 | First Header | Second Header | | ------------- | ------------- | | Content Cell | Content Cell | | Content Cell | Content Cell | #####例子4 | Function name | Description | | ------------- | ------------------------------ | | `help()` | Display the help window. | | `destroy()` | **Destroy your computer!** | #####例子5 | Left-Aligned | Center Aligned | Right Aligned | | :------------ |:---------------:| -----:| | col 3 is | some wordy text | $1600 | | col 2 is | centered | $12 | | zebra stripes | are neat | $1 | #####例子6 | Item | Value | | --------- | -----:| | Computer | $1600 | | Phone | $12 | | Pipe | $1 | ---- #### 特殊符号 HTML Entities Codes © & ¨ ™ ¡ £ & < > ¥ € ® ± ¶ § ¦ ¯ « · X² Y³ ¾ ¼ × ÷ » 18ºC " ' ### Emoji表情 :smiley: > Blockquotes :star: #### GFM task lists & Emoji & fontAwesome icon emoji & editormd logo emoji :editormd-logo-5x: - [x] :smiley: @mentions, :smiley: #refs, [links](), **formatting**, andtagssupported :editormd-logo:; - [x] list syntax required (any unordered or ordered list supported) :editormd-logo-3x:; - [x] [ ] :smiley: this is a complete item :smiley:; - [ ] []this is an incomplete item [test link](#) :fa-star: @pandao; - [ ] [ ]this is an incomplete item :fa-star: :fa-gear:; - [ ] :smiley: this is an incomplete item [test link](#) :fa-star: :fa-gear:; - [ ] :smiley: this is :fa-star: :fa-gear: an incomplete item [test link](#); #### 反斜杠 Escape ```Latex \*literal asterisks\* ``` \*literal asterisks\* Markdown 支持以下这些符号前面加上反斜杠来帮助插入普通的符号: ```Latex \ 反斜线 ` 反引号 * 星号 _ 底线 {} 花括号 [] 方括号 () 括弧 # 井字号 + 加号 - 减号 . 英文句点 ! 惊叹号 ``` ### 科学公式 TeX(KaTeX) ```Latex $$E=mc^2$$ ``` $$E=mc^2$$ ```Latex 行内的公式\\(E=mc^2\\)行内的公式,行内的\\(E=mc^2\\)公式。 ``` 行内的公式\\(E=mc^2\\)行内的公式,行内的\\(E=mc^2\\)公式。 ```Latex $$x > y$$ $$\(\sqrt{3x-1}+(1+x)^2\)$$ $$\sin(\alpha)^{\theta}=\sum_{i=0}^{n}(x^i + \cos(f))$$ ``` $$x > y$$ $$\(\sqrt{3x-1}+(1+x)^2\)$$ $$\sin(\alpha)^{\theta}=\sum_{i=0}^{n}(x^i + \cos(f))$$ 多行公式: ```Latex $$ \displaystyle \left( \sum\_{k=1}^n a\_k b\_k \right)^2 \leq \left( \sum\_{k=1}^n a\_k^2 \right) \left( \sum\_{k=1}^n b\_k^2 \right) $$ $$ \displaystyle \frac{1}{ \Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{ \frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} { 1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\cdots} } } } $$ $$ f(x) = \int_{-\infty}^\infty \hat f(\xi)\,e^{2 \pi i \xi x} \,d\xi $$ ``` $$ \displaystyle \left( \sum\_{k=1}^n a\_k b\_k \right)^2 \leq \left( \sum\_{k=1}^n a\_k^2 \right) \left( \sum\_{k=1}^n b\_k^2 \right) $$ $$ \displaystyle \frac{1}{ \Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{ \frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} { 1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\cdots} } } } $$ $$ f(x) = \int_{-\infty}^\infty \hat f(\xi)\,e^{2 \pi i \xi x} \,d\xi $$