快速回忆
要点1:
```mermaid
%% 这是注释,需要>,label用[""],换行用\n
flowchart LR
a --> b
b["a\na2"] --> c["c"]
```
要点2:
```mermaid
flowchart LR
A-- This is the text! ---B
```
细节
---
title: Node
---
#方向 LR TD
flowchart LR
# 标签内换行 </br>
a --> b["abc</br>def">
# 注释
%%
# 长方形
id1[This is the text in the box]
# 注释
A-- This is the text! ---B
# 虚线
A -.-> B
# 线段注释
A-->|text|B
# 框图
subgraph one
a1-->a2
end
# 注释
a --> b["abc"]
# 颜色
开头统一注释
classDef color_01_red fill:#f96
使用:
a --> b:::color_01_red
:::相当于成员,设置颜色属性
参考:https://mermaid.js.org/syntax/flowchart.html
箭头
markdown
大小括号-数据库
圆形 (())
文档:
https://mermaid.js.org/intro/n00b-gettingStarted.html
在线编辑:
https://mermaid.live/edit