快速上手Mermaid流程图

什么是Mermaid流程图

Mermaid流程图快速入门
布局方向





形状

一次性节点

可重复节点












连接线











高级用法








快速入门流程图回顾总结

英文单词缩写
中文
英文
示例
几何化形状
表示法
含义
类型
备注
表示法
含义
类型
备注
有限语法
最后更新于









































最后更新于
- 项目地址
- 在线编辑
- 官方文档graph TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[fa:fa-car Car]+ TB
+ BT
+ LR
+ RLgraph TB
Start --> Stopgraph BT
Start --> Stopgraph LR
Start --> Stopgraph RL
Start --> Stop- 节点形状
+ [矩形]
- [[暂不支持]]
- [(圆柱)]
- [{暂不支持}]
- [/平行四边形/]
- [\平行四边形\]
- [/梯形\]
- [\梯形/]
+ (圆角矩形)
- ((圆形))
- ([体育场])
- ({暂不支持})
+ {菱形}
- {{六边形}}
- {[暂不支持]}
- {(暂不支持)}
+ >不对称矩形]graph TD
idgraph LR
id1[This is the text in the box]graph LR
id1(This is the text in the box)graph LR
id1([This is the text in the box])graph LR
id1[(Database)]graph LR
id1((This is the text in the circle))graph LR
id1>This is the text in the box]graph LR
id1{This is the text in the box}graph LR
id1\{\{This is the text in the box\}\}graph TD
id1[/This is the text in the box/]graph TD
id1[\This is the text in the box\]graph TD
A[/Christmas\]graph TD
B[\Go shopping/]+ 实线/虚线
- --
- -.
+ 有箭头/无箭头
- >
- -
+ 有描述/无描述
- 实线
+ --描述文字
+ |描述文字|
- 虚线
+ -.描述文字
+ |描述文字|
+ 加粗
- ==
+ 组合形式
- -->
- ---
- -.->
- -.-
- 有描述实线有箭头
+ --描述文字-->
+ -->|描述文字|
- 有描述实线无箭头
+ --描述文字---
+ ---|描述文字|
- 有描述虚线有箭头
+ -.描述文字-.->
+ -.->|描述文字|
- 有描述虚线无箭头
+ -.描述文字-.-
+ -.-|描述文字|
- ==>
- ===
- 有描述加粗实线有箭头(2)
+ ==描述文字==>
+ ==>|描述文字|
- 有描述加粗实线无箭头(2)
+ ==描述文字===
+ ===|描述文字|graph LR
A-->Bgraph LR
A --- Bgraph LR
A-- text -->Bgraph LR
A-->|text|Bgraph LR
A-- This is the text ---Bgraph LR
A---|This is the text|Bgraph LR
A-. text .-> Bgraph LR
A ==> Bgraph LR
A == text ==> Bgraph LR
A ==>|text| B+ -->-->
+ &
+ ""
+ %%
+ subgraphgraph LR
A -- text --> B -- text2 --> Cgraph LR
a --> b & c--> dgraph TB
A & B--> C & Dgraph LR
id1["This is the (text) in the box"]graph LR
A["A double quote:#quot;"] -->B["A dec char:#9829;"]subgraph title
graph definition
endgraph TB
c1-->a2
subgraph one
a1-->a2
end
subgraph two
b1-->b2
end
subgraph three
c1-->c2
endgraph LR
%% this is a comment A -- text --> B{node}
A -- text --> B -- text2 --> C- 英文单词缩写
- 几何化形状
- 有限语法