当前位置:网站首页>Markdown drawing Mermaid practical tutorial
Markdown drawing Mermaid practical tutorial
2022-06-28 19:23:00 【No regrets!】
Mermaid Is a tool for drawing flow charts 、 State diagram 、 Sequence diagram 、 Gantt chart Library , Use JS Render locally , Widely integrated into many Markdown Editor .
Mermaid As a use JS Rendered Library , Generated is not a “ picture ”, It's a piece of HTML Code .
Click to enter the official website
Click to enter Github Project address
1. mermaid Definition

2. flow chart
The syntax is as follows :
graph LR; # among LR Direction A --> B # Different arrows indicate
a. Direction and arrow meaning
| Diction graph x; | meaning | arrow | meaning |
|---|---|---|---|
TB | From top to bottom | > | Add tail arrow |
BT | From bottom to top | - | Do not add tail arrows |
RL | From left to right | -- | Single line |
LR | From right to left | --text-- | Single line plus text |
== | Thick line | ||
==text== | Bold lines with text | ||
-.- | Dotted line | ||
-.text.- | Dotted line with text |
b. Node meaning
Default square
id1[ square ]
id2( Round edged rectangle )
id3([ Stadium shape ])
id4[[ Subroutine ]]
id5[( cylindrical )]
id6(( circular ))
id1{
The diamond }
id2{
{
hexagon }}
id3[/ parallelogram /]
id4[\ Inverse parallelogram \]
id5[/ trapezoid \]
id6[\ Reverse trapezoid /]
c. Example
graph LR;
A>"Ubuntu<br>(Linux)"] -.soft.-> C{
TV}
B["MAC"] ==> D((ARM64))
D--> C
A --> B
graph LR
a---b
b-- Text 1!---c
c---| Text 2|d
d===e
e== Text 3===f
f-.-g
g-. Text .-h
- Extend the connection :
Add corresponding characters , As shown in the figure below B To E, Added a... To the connection-. Characters can be added more than once .
graph LR
A[Start] --> B{
Is it?};
B -->|Yes| C[OK];
C --> D[Rethink];
D --> B;
B --->|No| E[End];
- Multiple chains
graph LR
a --> b & c--> d
A & B--> C & D
X --> M
X --> N
Y --> M
Y --> N
- notes
%% This is a comment , Not visible in rendered view - Subgraphs
%% This is a comment , Not visible in rendered view
flowchart TB
c1-->a2
subgraph one
a1-->a2
end
subgraph two
b1-->b2
end
subgraph three
c1-->c2
end
one --> two
three --> two
two --> c2
边栏推荐
- How to change the status bar at the bottom of win11 to black? How to change the status bar at the bottom of win11 to black
- Variational graph auto-encoders (VGAE)
- Can py SQL get the table structure?
- 论文3 VScode&texlive&SumatraPDF打造完美书写论文工具
- 几行代码就能实现复杂的 Excel 导入导出,这个工具类真心强大!
- Graduation project - Design and development of restaurant management game based on unity (with source code, opening report, thesis, defense PPT, demonstration video and database)
- 变分自编码器 (Variational Autoencoders, VAEs)
- 让企业数字化砸锅和IT主管背锅的软件供应链安全风险指南
- Group programming TIANTI competition exercise - continuously updating
- [C #] explain the difference between value type and reference type
猜你喜欢

Sound network releases lingfalcon Internet of things cloud platform, which can build sample scenarios in one hour

变分自编码器 (Variational Autoencoders, VAEs)

使用点云构建不规则三角网TIN

Openharmony - detailed source code of Kernel Object Events

Variable autoencoders (vaes)

Chunfeng power and Huawei work together to build a smart Park benchmark, and the future factory innovation will reach a new level

3D rotatable particle matrix

How to learn JS through w3school / how to use the JS reference manual of w3school

大火的虚拟人在哪些产业开始发力?

High performance and high availability computing architecture scheme commented by Weibo
随机推荐
深度学习需要多强的数学基础?
pd.cut 区间参数设定之前后区别
leetcode 1689. Partitioning into minimum number of deci binary numbers
Technical methodology of new AI engine under the data infrastructure upgrade window
Installation and configuration of CGAL in PCL environment 5.4.1
PY SQL可以获取到表结构吗?
Windows 64位下载安装My SQL
Question brushing analysis tool
Paper 3 vscode & texlive & sumatrapdf create a perfect tool for writing papers
Bayesian inference problem, MCMC and variational inference
devpi
Matlab 2D or 3D triangulation
Full MySQL solution ubuntu/win10
A few lines of code can realize complex excel import and export. This tool class is really powerful!
Figure introduction to neural networks (GNN, GCN)
Redis 如何实现库存扣减操作?如何防止商品被超卖?
事实/论断/断言/结论/断定/判定
Idea merge other branches into dev branch
PCL 计算平面三角形外接圆的圆心和半径
AOSP Tsinghua image download error resolution