当前位置:网站首页>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 */
边栏推荐
- zabbix監控系統自定義監控內容
- 弈柯莱生物冲刺科创板:年营收3.3亿 弘晖基金与淡马锡是股东
- Question 49: how to quickly determine the impact of IO latency on MySQL performance
- [go basics] 2 - go basic sentences
- Système de surveillance zabbix contenu de surveillance personnalisé
- Unity-写入Word
- Flutter integrated amap_ flutter_ location
- The text box displays the word (prompt text) by default, and the text disappears after clicking.
- Example analysis of C # read / write lock
- Oracle stored procedures and functions
猜你喜欢

es6总结

FOC control

Newh3c - network address translation (NAT)

zabbix监控系统邮件报警配置

Common components of flask

DM8 uses different databases to archive and recover after multiple failures

Redis sentinel mechanism

DM8 tablespace backup and recovery

Fault analysis | MySQL: unique key constraint failure

A method for detecting outliers of data
随机推荐
[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-
Chrome is set to pure black
Difference between static method and non static method (advantages / disadvantages)
墨者学院-phpMyAdmin后台文件包含分析溯源
Comprendre la méthode de détection des valeurs aberrantes des données
L1 regularization and L2 regularization
Go h*ck yourself:online reconnaissance (online reconnaissance)
DM8 tablespace backup and recovery
DM8 uses different databases to archive and recover after multiple failures
@Role of pathvariable annotation
Developers really review CSDN question and answer function, and there are many improvements~
Redis sentinel mechanism
string. Format without decimal places will generate unexpected rounding - C #
弈柯莱生物冲刺科创板:年营收3.3亿 弘晖基金与淡马锡是股东
【性能測試】一文讀懂Jmeter
ZABBIX 5.0 monitoring client
What sparks can applet container technology collide with IOT
Example analysis of C # read / write lock
How to set multiple selecteditems on a list box- c#
Thesis learning -- time series similarity query method based on extreme point characteristics