当前位置:网站首页>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 */
边栏推荐
- WordPress get_ Users() returns all users with comparison queries - PHP
- FRP intranet penetration, reverse proxy
- Mouse over to change the transparency of web page image
- manjaro安装微信
- How to solve the problem of computer jam and slow down
- The right way to capture assertion failures in NUnit - C #
- Wechat has new functions, and the test is started again
- Use preg_ Match extracts the string into the array between: & | people PHP
- How to solve the problem that computers often flash
- Thesis learning -- time series similarity query method based on extreme point characteristics
猜你喜欢
【性能测试】一文读懂Jmeter
Do you know about autorl in intensive learning? A summary of articles written by more than ten scholars including Oxford University and Google
一文了解数据异常值检测方法
广和通高性能4G/5G无线模组解决方案全面推动高效、低碳智能电网
Conversion of yolov5 XML dataset to VOC dataset
Display Chinese characters according to numbers
Openfeign service interface call
Moher College webmin unauthenticated remote code execution
弈柯莱生物冲刺科创板:年营收3.3亿 弘晖基金与淡马锡是股东
ES6 summary
随机推荐
2022 tower crane driver examination and tower crane driver examination questions and analysis
ZABBIX monitoring system custom monitoring content
Call Baidu map to display the current position
How does Xiaobai buy a suitable notebook
Sports [running 01] a programmer's half horse challenge: preparation before running + adjustment during running + recovery after running (experience sharing)
R language uses cforest function in Party package to build random forest based on conditional inference trees, uses varimp function to check feature importance, and uses table function to calculate co
How to get bytes containing null terminators from a string- c#
FOC控制
Leetcode 146. LRU 缓存
[gurobi] establishment of simple model
How to write a summary of the work to promote the implementation of OKR?
Question 49: how to quickly determine the impact of IO latency on MySQL performance
WordPress get_ Users() returns all users with comparison queries - PHP
FOC control
Parallel shift does not provide any acceleration - C #
Cannot click button when method is running - C #
Set and modify the page address bar icon favicon ico
Example analysis of C # read / write lock
1、卡尔曼滤波-最佳的线性滤波器
A single element in an ordered array