(减号 + 空格 + 左方括号 + X + 右方括号 + 空格 + 名称)
*
,或者选中之后使用快捷键Ctrl + I
*
,或者选中之后使用快捷键Ctrl + B
,或者选中之后使用快捷键Ctrl + U
~
,或者选中之后使用快捷键Ctrl + Shift + 5
=
,需要在设置中勾选(file -> refences -> markdown -> syntax surpport)快捷键 | 作用 |
---|---|
Ctrl + 1/2/3/4/5/6 |
1-6号标题的切换 |
Ctrl + 0 或者 再按一下原来的标题【假设现在是Ctrl + 4,那就再按一下Ctrl + 4】 |
标题切换为正文 |
Ctrl + +/- |
1-6号标题的切换 |
Ctrl + Shift + + |
文本缩放放大 |
Ctrl + Shift + - |
文本缩放变小 |
三个+
或者三个-
或者三个*
有一个快捷用法,直接Ctrl
+ B
-> 四个*
号,直接就是水平分割线
:
后面接入要输入的单词
Ctrl
+ K
[]
里面填入的是名称,()
中是具体的网址
Ctrl
+ Shift
+ I
或者直接将图片拖入
```+ 要高亮的语法
或者是Ctrl
+ Shift
+ K
Ctrl
+ Shift
+ Q
或者直接使用 >
+ 回车
1:名字 + []
中有一个^
2:[]
同^
相对应,[]
外边有一个冒号 —> name:[^1]
1:名称 + 冒号 | [参考链接]
ctrl
+ shift
+ [/]
进行切换
ctrl
+ T
或者是|||
+ 回车进行创建
https://mermaid-js.github.io/mermaid/#/
语法选择对应的mermaid
-> ```mermaid
graph TD;
A --> B
A --> C
B --> D
sequenceDiagram
A ->>B: hello B
B -->>A: 你好啊,A
B->>C: 我是B
C -->>A: 他是B
stateDiagram
[*] --> Still
Still --> [*]
Still --> Moving
Moving --> Still
Moving --> Crash
Crash --> [*]
classDiagram
Animal <|-- Duck
Animal <|-- Fish
Animal <|-- Zebra
Animal : +int age
Animal : +String gender
Animal: +isMammal()
Animal: +mate()
class Duck{
+String beakColor
+swim()
+quack()
}
class Fish{
-int sizeInFeet
-canEat()
}
class Zebra{
+bool is_wild
+run()
}
pie title Pets adopted by volunteers
"Dogs" : 386
"Cats" : 85
"Rats" : 15
gantt
title A Gantt Diagram
dateFormat YYYY-MM-DD
section Section
A task :a1, 2014-01-01, 30d
Another task :after a1 , 20d
section Another
Task in sec :2014-01-12 , 12d
another task : 24d
如果是复杂的甘特图
gantt
dateFormat YYYY-MM-DD
title Adding GANTT diagram functionality to mermaid
excludes weekends
%% (`excludes` accepts specific dates in YYYY-MM-DD format, days of the week ("sunday") or "weekends", but not the word "weekdays".)
section A section
Completed task :done, des1, 2014-01-06,2014-01-08
Active task :active, des2, 2014-01-09, 3d
Future task : des3, after des2, 5d
Future task2 : des4, after des3, 5d
section Critical tasks
Completed task in the critical line :crit, done, 2014-01-06,24h
Implement parser and jison :crit, done, after des1, 2d
Create tests for parser :crit, active, 3d
Future task in critical line :crit, 5d
Create tests for renderer :2d
Add to mermaid :1d
Functionality added :milestone, 2014-01-25, 0d
section Documentation
Describe gantt syntax :active, a1, after des1, 3d
Add gantt diagram to demo page :after a1 , 20h
Add another diagram to demo page :doc1, after a1 , 48h
section Last section
Describe gantt syntax :after doc1, 3d
Add gantt diagram to demo page :20h
Add another diagram to demo page :48h
$$
(Shift+4 两次回车即可) 或者Ctrl +Shift +M
数学公式分行用两个斜线 \
,空格用一个\
分数:frac;乘法:times
\frac{a}{b} \times \frac{2}{3}\\
a b × 2 3 \frac{a}{b} \times \frac{2}{3}\\ ba×32
\sqrt{x} \ or\ \sqrt[5]{x}
大括号包值,中括号包n次(开几次根)
x o r x 5 \sqrt{x} \ or\ \sqrt[5]{x} x or 5x
下标用的是_
,上标是^
x^2 + y_3
x 2 + y 3 x^2 + y_3 x2+y3
向量:\vec
点乘:\cdot
平均:\overline
\vec{a} \cdot \vec{b} = 0 \\ \overline{x}
a ⃗ ⋅ b ⃗ = 0 x ‾ \vec{a} \cdot \vec{b} = 0 \\ \overline{x} a⋅b=0x
limit:\lim
指向,到:\to
无穷大:\infty
\lim_{n\to+\infty}n \\ \lim_{-\infty\to n}n
lim n → + ∞ n lim − ∞ → n n \lim_{n\to+\infty}n \\ \lim_{-\infty\to n}n n→+∞limn−∞→nlimn
积分:\int
\int_0^n f(x) dx \\ \int f(x) dx
∫ 0 n f ( x ) d x ∫ f ( x ) d x \int_0^n f(x) dx \\ \int f(x) dx ∫0nf(x)dx∫f(x)dx
求和:\sum
\sum_{i=1}^n a_i \\ \sum a_i
∑ i = 1 n a i ∑ a i \sum_{i=1}^n a_i \\ \sum a_i i=1∑nai∑ai
\begin{bmatrix}
6&2&1&3 \\
7&4&7&5 \\
\end{bmatrix}
[ 6 2 1 3 7 4 7 5 ] \begin{bmatrix} 6&2&1&3 \\ 7&4&7&5 \\ \end{bmatrix} [67241735]
如果不想要框线
\begin{matrix}
6&2&1&3 \\
7&4&7&5 \\
\end{matrix}
6 2 1 3 7 4 7 5 \begin{matrix} 6&2&1&3 \\ 7&4&7&5 \\ \end{matrix} 67241735