当前位置:网站首页>The basic syntax of mermaid in typera
The basic syntax of mermaid in typera
2022-07-04 08:31:00 【Knowledge collector】
Catalog
1. How to enter the drawing mode ?
Three `( Interval number )+mermaid
```mermaid // And then go back , Enter the code quickly , Do mind mapping , Flowchart
graph TB // Used to describe the direction of a graph ,typora All are downward by default
2. node
- Namely graph( chart ) Each text box in ( Or text block ), Is the basic composition of a graph .Mermaid Each node in the has a id, And the text of the node .
. Common are :
id style | id meaning |
---|---|
id( ) | Rounded rectangle node ( It can also be called rounded rectangle ) |
id [ ] | Rectangular node ( Default ) |
id(( )) | Circular nodes |
id{ } | l Prismatic node |
id > ] | Flag node with opening to the right |
id [ < | Flag node with left opening ( Try it and find that it doesn't exist ) |
eg:
3. Lines between nodes
The pattern of the line | meaning |
---|---|
–> | A solid line with an arrow ( The more short lines, the longer the line ) |
----> | Text can be added in the middle |
— | Solid lines without arrows ( The more short lines, the longer the line ) |
— --- | Text can be added in the middle |
- . - | Dotted line ( The dotted line cannot be extended ) |
- . -> | Dotted line ( Can't extend ) |
-.- -.-> | Text can be added in the middle ( Can't extend ) |
==> | Thick line with arrow ( Can be extended ) |
=== | Thick line ( Can be extended ) |
====> | Text can be added in the middle ( Can be extended ) |
====== | Text can be added in the middle ( Can be extended ) |
4. Mind mapping :
What is? Mind mapping ?
Every node ( title ) It is best to name according to certain rules :
Property value | effect |
---|---|
LR | Spread the mind map from left to right |
RL | Spread the mind map from right to left |
TB | Let the mind map be scattered from top to bottom |
BT | Let the mind map be scattered from bottom to top |
expand :
LR Namely Left and Right The first letter of
TB Namely Top( Top ) and Bottom( Bottom ) The first letter of
Add subgraph :
subgraph Sub chart name
Sub graph content
end
5. flow chart
What is? flow chart ?
- The rounded rectangle represents “ Start ” And “ end ”;
- Input and output are represented by parallelogram ;
- The rectangle represents the action plan 、 For ordinary work links , Procedures to be executed ;
- Diamond indicates problem judgment or judgment ( to examine / The examination and approval / review ) link ;
- The arrow stands for workflow Direction .
Using nodes to represent flow charts cannot be standardized , First of all, because it has no parallelogram , Secondly, its typesetting is not standardized . Want to standardize the flow chart , You need to use the standard flow chart source code format
```mermaid
flowchat
id1=>start: Start box
id2=>operation: Processing box
id3=>condition: Judgment box
id4=>subroutine: Sub process
id5=>inputoutput: I / O box
id6=>end: End box
id1->id2->id3
id3(yes)->id5->id6
//yes\no Is the prescribed writing , Control path
id3(no)->id4(right)->id2
/*right Control to line from id4 Which direction will you come out to id2( The default is bottom), In addition to the judgment box , Everything else can be used left,right,top,bottom Four words to control the direction of the line */
边栏推荐
- [gurobi] establishment of simple model
- Group programming ladder race - exercise set l2-002 linked list de duplication
- 【性能测试】一文读懂Jmeter
- Parallel shift does not provide any acceleration - C #
- ZABBIX 5.0 monitoring client
- Call Baidu map to display the current position
- Famous blackmail software stops operation and releases decryption keys. Most hospital IOT devices have security vulnerabilities | global network security hotspot on February 14
- Three paradigms of database design
- Question 49: how to quickly determine the impact of IO latency on MySQL performance
- 一文了解数据异常值检测方法
猜你喜欢
Unity text superscript square representation +text judge whether the text is empty
小程序容器技术与物联网 IoT 可以碰撞出什么样的火花
NPM run build error
zabbix監控系統自定義監控內容
zabbix 5.0监控客户端
Newh3c - network address translation (NAT)
Chrome is set to pure black
DM8 command line installation and database creation
What should I do if there is a problem with the graphics card screen on the computer
[gurobi] establishment of simple model
随机推荐
deno debugger
Cannot click button when method is running - C #
Leetcode 146. LRU cache
1. Qt入门
Go h*ck yourself:online reconnaissance (online reconnaissance)
L1 regularization and L2 regularization
Newh3c - network address translation (NAT)
What if the wireless network connection of the laptop is unavailable
[BSP video tutorial] stm32h7 video tutorial phase 5: MDK topic, system introduction to MDK debugging, AC5, AC6 compilers, RTE development environment and the role of various configuration items (2022-
How to set multiple selecteditems on a list box- c#
广和通高性能4G/5G无线模组解决方案全面推动高效、低碳智能电网
C#,数值计算(Numerical Recipes in C#),线性代数方程的求解,Gauss-Jordan消去法,源代码
The text box displays the word (prompt text) by default, and the text disappears after clicking.
[test de performance] lire jmeter
Scanf read in data type symbol table
What if I forget the router password
DM8 database recovery based on point in time
Leetcode 146. LRU 缓存
Collections in Scala
How to play dapr without kubernetes?