当前位置:网站首页>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
边栏推荐
- 秋招经验分享 | 银行笔面试该怎么准备
- sql计算每日新增用户、及留存率指标
- 智能计算系统2 bangc算子开发的demo (CPU和MLU270的异构编程流程)
- 列表加入计时器(正计时、倒计时)
- Ffmpeg usage in video compression processing
- 大火的虚拟人在哪些产业开始发力?
- 论文笔记:Universal Value Function Approximators
- Paper 3 vscode & texlive & sumatrapdf create a perfect tool for writing papers
- Can py SQL get the table structure?
- Variational graph auto-encoders (VGAE)
猜你喜欢

应用实践 | 10 亿数据秒级关联,货拉拉基于 Apache Doris 的 OLAP 体系演进(附 PPT 下载)

SQL Server2019 新建 SQL Server身份验证用户名 并登录

The white paper on the panorama of the digital economy and the digitalization of consumer finance were released

Ffmpeg usage in video compression processing

SQL interview question: find the maximum number of consecutive login days
![[C #] explain the difference between value type and reference type](/img/23/5bcbfc5f9cc6e8f4d647acf9219b08.png)
[C #] explain the difference between value type and reference type

Paper 3 vscode & texlive & sumatrapdf create a perfect tool for writing papers

math_证明常用等价无穷小&案例&代换

Figure introduction to neural networks (GNN, GCN)

Redis 如何实现库存扣减操作?如何防止商品被超卖?
随机推荐
春风动力携手华为打造智慧园区标杆,未来工厂创新迈上新台阶
SQL Server2019 新建 SQL Server身份验证用户名 并登录
Technical methodology of new AI engine under the data infrastructure upgrade window
Win11底部状态栏如何换成黑色?Win11底部状态栏换黑色的方法
Variational graph auto-encoders (VGAE)
福建的朋友们,你们的养老保险上云啦!
new String(“hello“)之后,到底创建了几个对象?
There are thousands of roads. Why did this innovative storage company choose this one?
matlab 二维或三维三角剖分
展示用sql创建中间数据表的实际工作用例
math_证明常用等价无穷小&案例&代换
The amazing nanopc-t4 (rk3399) is used as the initial configuration and related applications of the workstation
微博评论的高性能高可用计算架构方案
直播app系统源码,动态遇到视频时开始自动播放
大火的虚拟人在哪些产业开始发力?
G 双轴图sql脚本
Some error prone points of C language pointer
易观分析《2022年中国银行业隐私计算平台供应商实力矩阵分析》研究活动 正式启动
AOSP Tsinghua image download error resolution
In which industries did the fire virtual human start to make efforts?