0%

Markdown语法参考

Typora 的 Markdown 语法

标题

1
2
3
4
5
6
7
8
9
10
11
# 一级标题

## 二级标题

### 三级标题

#### 四级标题

##### 五级标题

###### 六级标题

一级标题

二级标题

三级标题

四级标题

五级标题
六级标题

分割线

1
2
3
4
5
6
7
8
9
//分割线表示

---

---

---

<hr style="border:1px solid red;">




字体

字体类型和颜色

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<font face="kaiti">这里是楷体</font>
<br/>
<font face="heiti">这里是黑体</font>
<br/>
<font face="simsun">这里是宋体</font>
<br/>
<font face="Arial">This is Arial</font>
<br/>
<font face="Arial Narrow">This is Arial Narrow</font>
<br/>
<font face="Times New Roman">This is Times New Roman</font>
<br/>
<font face="Calibri">This is Calibri</font>
<br/>
<font color="red"><b>红色加粗</b></font>
<br/>
<font style="background: linear-gradient( to right,#ff1616,#ff7716,#ffdc16,#36c945,#10a5ce,#Of0096,#a51eff,#ff1616); ">这是七色光彩背景颜色</font>

这里是楷体

这里是黑体

这里是宋体

这里是幼圆

这里是华文彩云

This is Arial

This is Arial Narrow

This is Times New Roman

This is Calibri

红色加粗

这是七色光彩背景颜色

其他

1
2
3
4
5
6
7
8
==高亮==
~~删除线~~
**粗\*\***体**
_斜体_
**_粗_\***\*_斜_**_**体**_
<u>下划线</u>
:smile:
$\theta=x^2$

高亮
删除线
粗**
斜体
***斜_*​ *
_体*
下划线
😄
emoji 链接
θ=x2\theta=x^2

转义

1
2
3
4
5
6
7
8
9
10
11
12
\\ 反斜杠
\` 反引号 \* 星号
\_ 下划线
\{\} 大括号
\[\] 中括号
\(\) 小括号
\# 井号
\+ 加号
\- 减号
\. 英文句号
\! 感叹号
&#124; 竖号

\ 反斜杠
` 反引号 * 星号
_ 下划线
{} 大括号
[] 中括号
() 小括号
# 井号
+ 加号
- 减号
. 英文句号
! 感叹号
|  竖号

引用

1
2
3
//一级引用用一个>来表示
//二级引用用两个>来表示
//三级引用用三个>来表示

一级引用

二级引用

三级引用

脚注

1
一键三连[^1]

一键三连[1]

列表

有序列表

1
2
3
4
5
6
7
8
9
10
//有序列表

## 有序列表

1. 有序列表 1
2. 有序列表 2
3. 有序列表 3
1. 子序列 1
2. 子序列 2
3. 子序列 3
  1. 有序列表 1
  2. 有序列表 2
  3. 有序列表 3
    1. 子序列 1
    2. 子序列 2
    3. 子序列 3

无序列表

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//无序列表

## 无序列表

- 无序列表 1

* 无序列表 2
- [ ] 子序列 1
- [ ] 子序列 2
- [x] 子序列 3

- 无序列表 3
- 子序列 1
* 子序列 2
- 子序列 3
  • 无序列表 1
  • 无序列表 2
    • [ ] 子序列 1
    • [ ] 子序列 2
    • [x] 子序列 3
  • 无序列表 3

    • 子序列 1
    • 子序列 2
    • 子序列 3

数学公式

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$$
\frac{partial f}{\partial x} = \sqrt[3]{a_1}x
$$

$$
\Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt \tag{2}
$$

$$
\lim_{a\to\infty}a=\infty\lim_{b\rightarrow-\infty}=-\infty \tag{3}
$$

$$
x(t)=\sum_{k=-\infty}^{\infty}a_ke^{jkw_0t} \tag{4}
$$

fx=a13x(1)\frac{\partial f}{\partial x} = \sqrt[3]{a_1}x \tag{1}

Γ(z)=0tz1etdt(2)\Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt \tag{2}

limaa=limb=(3)\lim_{a\to\infty}a=\infty\lim_{b\rightarrow-\infty}=-\infty \tag{3}

x(t)=k=akejkw0t(4)x(t)=\sum_{k=-\infty}^{\infty}a_ke^{jkw_0t} \tag{4}

1
2
3
4
5
$$
\vec{F}=ma\\
\leq\\
\geq
$$

F=maabbc\vec{F}=ma\\ a\leq b\\ b\geq c

希腊字母

1
2
3
4
5
6
$\alpha$, $\beta$, $\gamma$, $\delta$, $\epsilon$\
$\varepsilon$, $\eta$, $\theta$, $\vartheta$, $\kappa$\
$\pi$, $\rho$, $\lambda$, $\mu$, $\phi$\
$\varphi$, $\omega$, $\tau$, $\psi$, $\Psi$\
$\xi$, $\iota$, $\zeta$, $\nu$, $\upsilon$\
$\sigma$, $\chi$, $\omicron$, $\Xi$, $\Upsilon$

α\alpha, β\beta, γ\gamma, δ\delta, ϵ\epsilon
ε\varepsilon, η\eta, θ\theta, ϑ\vartheta, κ\kappa
π\pi, ρ\rho, λ\lambda, μ\mu, ϕ\phi
φ\varphi, ω\omega, τ\tau, ψ\psi, Ψ\Psi
ξ\xi, ι\iota, ζ\zeta, ν\nu, υ\upsilon
σ\sigma, χ\chi, ο\omicron, Ξ\Xi, Υ\Upsilon

矩阵

1
2
3
4
5
6
$$
\begin{Bmatrix}
a & b \\
c & d
\end{Bmatrix} \tag{1}
$$

{abcd}(1)\begin{Bmatrix} a & b \\ c & d \end{Bmatrix} \tag{1}

1
2
3
4
5
6
$$
\begin{bmatrix}
a & b\\
c & d
\end{bmatrix} \tag{2}
$$

[abcd](2)\begin{bmatrix} a & b\\ c & d \end{bmatrix} \tag{2}

1
2
3
4
5
6
$$
\begin{vmatrix}
a & b\\
c & d
\end{vmatrix} \tag{3}
$$

abcd(3)\begin{vmatrix} a & b\\ c & d \end{vmatrix} \tag{3}

1
2
3
4
5
6
7
8
9
$$
\left\{
\begin{matrix}
1 & 2 & 3\\
4 & 5 & 6\\
7 & 8 & 9
\end{matrix}
\right\} \tag{4}
$$

{123456789}(4)\left\{ \begin{matrix} 1 & 2 & 3\\ 4 & 5 & 6\\ 7 & 8 & 9 \end{matrix} \right\} \tag{4}

1
2
3
4
5
6
7
8
9
$$
\left[
\begin{matrix}
1 & 2 & 3\\
4 & 5 & 6\\
7 & 8 & 9
\end{matrix}
\right] \tag{5}
$$

[123456789](5)\left[ \begin{matrix} 1 & 2 & 3\\ 4 & 5 & 6\\ 7 & 8 & 9 \end{matrix} \right] \tag{5}

1
2
3
4
5
6
7
8
9
$$
\left(
\begin{matrix}
1 & 2 & 3\\
4 & 5 & 6\\
7 & 8 & 9
\end{matrix}
\right) \tag{6}
$$

(123456789)(6)\left( \begin{matrix} 1 & 2 & 3\\ 4 & 5 & 6\\ 7 & 8 & 9 \end{matrix} \right) \tag{6}

1
2
3
4
5
6
7
8
$$
\begin{Bmatrix}
1 & 2 & \cdots & 5\\
6 & 7 & \cdots & 10\\
\vdots & \vdots & \ddots & \vdots\\
\alpha & \alpha+1 & \cdots & \alpha+4
\end{Bmatrix}\tag{7}
$$

{1256710αα+1α+4}(7)\begin{Bmatrix} 1 & 2 & \cdots & 5\\ 6 & 7 & \cdots & 10\\ \vdots & \vdots & \ddots & \vdots\\ \alpha & \alpha+1 & \cdots & \alpha+4 \end{Bmatrix}\tag{7}

多行等式对齐

1
2
3
4
5
6
$$
\begin{aligned}
a &= b + c \\
&= d + e + f
\end{aligned}
$$

a=b+c=d+e+f\begin{aligned} a &= b + c \\ &= d + e + f \end{aligned}

方程组、条件表达式

1
2
3
4
5
6
7
$$
\begin{cases}
3x + 5y + z \\
7x - 2y + 4z \\
-6x + 3y + 2z
\end{cases}
$$

{3x+5y+z7x2y+4z6x+3y+2z\begin{cases} 3x + 5y + z \\ 7x - 2y + 4z \\ -6x + 3y + 2z \end{cases}

1
2
3
4
5
6
7
$$
f(n) =
\begin{cases}
n/2, & \text{if }n\text{ is even} \\
3n+1, & \text{if }n\text{ is odd}
\end{cases}
$$

f(n)={n/2,if n is even3n+1,if n is oddf(n) = \begin{cases} n/2, & \text{if }n\text{ is even} \\ 3n+1, & \text{if }n\text{ is odd} \end{cases}

间隔

1
2
3
4
5
//紧贴 + 无空格 + 小空格 + 中空格 + 大空格 + 真空格 + 双真空格

$$
a\!b + ab + a\,b + a\;b + a\ b + a\quad b + a\qquad b
$$

a ⁣b+ab+ab+a  b+a b+ab+aba\!b + ab + a\,b + a\;b + a\ b + a\quad b + a\qquad b

表格

简易表格

1
2
3
4
5
6
7
8
$$
\begin{array}{|c|l|r|}
\hline 1&20&3000\\
\hline 40&500&60000\\
\hline 7000&80000&9000000\\
\hline
\end{array}
$$

120300040500600007000800009000000\begin{array}{|c|l|r|} \hline 1&20&3000\\ \hline 40&500&60000\\ \hline 7000&80000&9000000\\ \hline \end{array}

1
2
3
4
5
6
|参数|解释|  
|:-:|:-:|//居中
//|-:|-:|右对齐
//|:-|:-|左对齐
|enable|是否启用 nav 左侧项目按钮,仅控制左侧项目按钮|
|travelling|是否启用 nav 开往按钮|
参数 解释
enable 是否启用 nav 左侧项目按钮,仅控制左侧项目按钮
travelling 是否启用 nav 开往按钮

真值表

1
2
3
4
5
6
7
8
9
$$
\begin{array}{cc|c}
A&B&F\\
\hline 0&0&0\\
0&1&1\\
1&0&1\\
1&1&1\\
\end{array}
$$

ABF000011101111\begin{array}{cc|c} A&B&F\\ \hline 0&0&0\\ 0&1&1\\ 1&0&1\\ 1&1&1\\ \end{array}

甘特图

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
```mermaid
gantt
dateFormat YYYY-MM-DD
title 软件开发甘特图
section 设计
需求 :done, des1, 2014-01-06,2014-01-08
原型 :active, des2, 2014-01-09, 3d
UI设计 : des3, after des2, 5d
未来任务 : des4, after des3, 5d
section 开发
学习准备理解需求 :crit, done, 2014-01-06,24h
设计框架 :crit, done, after des2, 2d
开发 :crit, active, 3d
未来任务 :crit, 5d
耍 :2d
section 测试
功能测试 :active, a1, after des3, 3d
压力测试 :after a1 , 20h
测试报告 : 48h
```
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
gantt
dateFormat YYYY-MM-DD
title Work Plan

FYP Topic Select :done, des1, 2022-06-06,2022-09-15
Preliminary Report :done, des2, 2022-10-05,2022-10-30
Final Report Framework: done, 2022-11-18, 2022-12-01
Literature Reading :active, 2022-09-20,2023-03-18
Interim Report :done, 2022-12-25, 2023-01-13
Experiment Performing :active, 2022-11-23, 2023-03-01
Data Analysis: 2023-02-22, 2023-04-10

Final Report: 2023-03-01, 2023-04-28

Oral Presentation: 2023-05-15, 2023-05-19

超链接

1
2
3
4
5
6
7
8
9
[B 站](https://www.bilibili.com)

[原神](./QQ截图20220110160242.png)

[【静止画 MAD】FRIEND](https://i0.hdslb.com/bfs/archive/3fb28cc5eef41d048083c48e7539bdf9a7864440.jpg@560w_350h_100Q_1c.webp)

[【静止画 MAD】FRIEND](https://www.bilibili.com/video/BV1uL411W7HT)

<iframe src="https://player.bilibili.com/player.html?aid=461536590&bvid=BV1uL411W7HT&cid=368370249&p=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" &danmaku="1" width="90%" height="360"> </iframe>

B 站

【静止画 MAD】FRIEND

【静止画 MAD】FRIEND

图片

1
2
3
4
5
//在线图片
![【静止画MAD】FRIEND](https://i0.hdslb.com/bfs/archive/3fb28cc5eef41d048083c48e7539bdf9a7864440.jpg@560w_350h_100Q_1c.webp)

//本地图片
![原神](./QQ截图20220110160242.png)

【静止画MAD】FRIEND

代码块

1
`printf()`

printf()

1
2
3
4
5
#include<stdio.h>
int main(){
printf("hello world!");
return 0;
}

UML 图表

1
2
3
4
5
6
7
8
9
10
11
12
13
//下面是一个序列图

```mermaid
sequenceDiagram
张三 ->> 李四: 你好!李四, 最近怎么样?
李四-->>王五: 你最近怎么样,王五?
李四--x 张三: 我很好,谢谢!
李四-x 王五: 我很好,谢谢!
Note right of 王五: 李四想了很长时间, 文字太长了<br/>不适合放在一行.

李四-->>张三: 打量着王五...
张三->>王五: 很好... 王五, 你怎么样?
```
1
2
3
4
5
6
7
8
9
sequenceDiagram
张三 ->> 李四: 你好!李四, 最近怎么样?
李四-->>王五: 你最近怎么样,王五?
李四--x 张三: 我很好,谢谢!
李四-x 王五: 我很好,谢谢!
Note right of 王五: 李四想了很长时间, 文字太长了<br/>不适合放在一行.

李四-->>张三: 打量着王五...
张三->>王五: 很好... 王五, 你怎么样?
1
2
3
4
5
6
7
8
9
//下面是一个流程图

```mermaid
graph LR
A[长方形] -- 链接 --> B((圆))
A --> C(圆角长方形)
B --> D{菱形}
C --> D
```
1
2
3
4
5
graph LR
A[长方形] -- 链接 --> B((圆))
A --> C(圆角长方形)
B --> D{菱形}
C --> D
  • 关于 Mermaid 语法,参考 这儿,

Flowchart 流程图

1
2
3
4
5
6
7
8
9
10
//标准流程图源码格式
st=>start: 开始框
op=>operation: 处理框
cond=>condition: 判断框(是或否?)
sub1=>subroutine: 子流程
io=>inputoutput: 输入输出框
e=>end: 结束框
st->op->cond
cond(yes)->io->e
cond(no)->sub1(right)->op
1
2
3
4
5
6
7
8
9
st=>start: 开始框
op=>operation: 处理框
cond=>condition: 判断框(是或否?)
sub1=>subroutine: 子流程
io=>inputoutput: 输入输出框
e=>end: 结束框
st->op->cond
cond(yes)->io->e
cond(no)->sub1(right)->op
1
2
3
4
5
6
7
8
9
10
//标准流程图源码格式(横向)
st=>start: 开始框
op=>operation: 处理框
cond=>condition: 判断框(是或否?)
sub1=>subroutine: 子流程
io=>inputoutput: 输入输出框
e=>end: 结束框
st(right)->op(right)->cond
cond(yes)->io(bottom)->e
cond(no)->sub1(right)->op
1
2
3
4
5
6
7
8
9
st=>start: 开始框
op=>operation: 处理框
cond=>condition: 判断框(是或否?)
sub1=>subroutine: 子流程
io=>inputoutput: 输入输出框
e=>end: 结束框
st(right)->op(right)->cond
cond(yes)->io(bottom)->e
cond(no)->sub1(right)->op

  1. 点赞、投币、收藏 ↩︎

如果此文章能给您带来小小的工作效率提升,不妨小额赞助我一下,以鼓励我写出更好的文章!