反斜杠 Markdown对于一些特殊字符需要加入反斜杠来输入
\ 反斜线 ` 反引号 * 星号 _ 底线 {} 花括号 [] 方括号 () 括弧 # 井字号 + 加号 - 减号 . 英文句点 ! 惊叹号类Setext形式是用底线对形式,=(高阶标题),-(第二阶标题)
This is an H1 ============= This is an H2 -------------任何数量对= -都有效果;
类atx形式是在行首加入1-6个#和一个空格,对应1-6阶标题
# 这是 H1 ## 这是 H2 ###### 这是 H6This is a quote line 2 line 3
区块引用可以嵌套使用,
> This is the first level of quoting. > > > This is nested blockquote. > > Back to the first level.对应效果如下
This is the first level of quoting.
This is nested blockquote.
Back to the first level.
引用的区块内也可以使用其他的 Markdown 语法,包括标题、列表、代码区块等:
Text + 链接可以是绝对路径,也可以是相对路径;
参考式格式如下:
[id]: http://i4.piimg.com/11340/7f638e192b9079e6.jpg "风景" ![图片][id]效果如下:
[image]:http://i4.piimg.com/11340/7f638e192b9079e6.jpg “风景” ![图片][image]
格式如下:
项目价格数量计算机$16005手机$1212管线$1234 ---:代表居右,:--- 代表居左,:---: 代表居中;前后两个 ~
~~删除线~~效果如下: 删除线
语法如下:
```{mermaid} ```在代码块需要指定特定图表类型;
flowchart
语法
```{mermaid} graph TD A-->B A-->C B-->D C-->D ```效果如下:
graph TD; A-->B; A-->C; B-->D; C-->D;direction graph可用指定layout direction TB - top bottomBT - bottom topRL - right leftLR - left rightNode&Shape
```{mermaid} graph TD A[ABC] B(BCD) C((CDE)) D{DEF} E>EFG] ```效果如下:
graph TD A[ABC] B(BCD) C((CDE)) D{DEF} E>EFG]sequenceDiagram
```{mermaid} sequenceDiagram participant Alice participant Bob Alice->John: Hello John, how are you? loop Healthcheck John->John: Fight against hypochondria end Note right of John: Rational thoughts <br/>prevail... John-->Alice: Great! John->Bob: How about you? Bob-->John: Jolly good! ```效果如下:
sequenceDiagram participant Alice participant Bob Alice->John: Hello John, how are you? loop Healthcheck John->John: Fight against hypochondria end Note right of John: Rational thoughts <br/>prevail... John-->Alice: Great! John->Bob: How about you? Bob-->John: Jolly good!gantt
```{mermaid} gantt dateFormat YYYY-MM-DD title Adding GANTT diagram functionality to mermaid section A section Completed task :done, des1, 2014-01-06,2014-01-08 Active task :active, des2, 2014-01-09, 3d Future task : des3, after des2, 5d Future task2 : des4, after des3, 5d section Critical tasks Completed task in the critical line :crit, done, 2014-01-06,24h Implement parser and jison :crit, done, after des1, 2d Create tests for parser :crit, active, 3d Future task in critical line :crit, 5d Create tests for renderer :2d Add to mermaid :1d ```效果如下:
gantt dateFormat YYYY-MM-DD title Adding GANTT diagram functionality to mermaid section A section Completed task :done, des1, 2014-01-06,2014-01-08 Active task :active, des2, 2014-01-09, 3d Future task : des3, after des2, 5d Future task2 : des4, after des3, 5d section Critical tasks Completed task in the critical line :crit, done, 2014-01-06,24h Implement parser and jison :crit, done, after des1, 2d Create tests for parser :crit, active, 3d Future task in critical line :crit, 5d Create tests for renderer :2d Add to mermaid :1d