Markdown语法进阶

[TOC]

文章目录

生成文章目录:

[TOC]

图形

流程图

graph TB
A[开始]-->B(打开冰箱门)
B-->C(放入大象)
C-->D(光上冰箱门)
D-->E(结束)
graph TB
A[开始]-->B(打开冰箱门)
B-->C(放入大象)
C-->D(光上冰箱门)
D-->E(结束)
st=>start: Start
op1=>operation: Identify objects
op2=>operation: Investigate business process
op3=>operation: Sketch
op4=>operation: Discuss
cond=>condition: Yes or No
op5=>operation: Draw a chart
op6=>operation: Modify
e=>end
st->op1->op2->op3->op4->cond
cond(yes)->op5->e
cond(no)->op6->op3
st=>start: Start
op1=>operation: Identify objects
op2=>operation: Investigate business process
op3=>operation: Sketch
op4=>operation: Discuss
cond=>condition: Yes or No
op5=>operation: Draw a chart
op6=>operation: Modify
e=>end
st->op1->op2->op3->op4->cond
cond(yes)->op5->e
cond(no)->op6->op3

时序图

小程序 ->> 小程序: wx.login()获取code
小程序 ->> 服务器: wx.request()发送code
服务器 ->> 微信服务器: code + appid + secret
微信服务器 ->> 服务器: openid
服务器 ->> 服务器: 根据openid确定用户并生成token
服务器 ->> 小程序: token
小程序 ->> 小程序: wx.login()获取code
小程序 ->> 服务器: wx.request()发送code
服务器 ->> 微信服务器: code + appid + secret
微信服务器 ->> 服务器: openid
服务器 ->> 服务器: 根据openid确定用户并生成token
服务器 ->> 小程序: token

脚注

[^keyword]:www.xxx.com

示例:

[^1]: some description

待办事项

- []
- [x]
  • 待办事项一
  • 待办事项二
  • 已完成一

Latex公式

$ 表示行内公式

$x^2 + y^2 = 1$

$x^2 + y^2 = 1$

$$ 整行公式

$$ \sum_{i=1}^n a_i = 0 $$
$$ f(x_1, x_x, \dots, x_n) = x_1^2 + x_2^2 + \dots + x_n^2 $$
$$ \sum^{j-1}_{k-0}{\widehat{\gamma}_{kj}{z_k}} $$
$ \sqrt{3x-1}+\sqrt[5]{2y^5-4} $
$$ \cos (2\theta) = \cos^2 \theta - \sin^2 \theta $$
输出带有分子分母的分数的语法为\frac{分子}{分母},使用大括号把分子、分母都围住。
$$ \lim\limits_{x \to \infty} \exp(-x) = 0 $$
$$ \frac{n!}{k!{n-k}!} = \binom{n}{k} $$

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

$$ \sum_{i=1}^n a_i = 0 $$

$$ f(x_1, x_x, \dots, x_n) = x_1^2 + x_2^2 + \dots + x_n^2 $$

$$ \sum^{j-1}{k-0}{\widehat{\gamma}{kj}{z_k}} $$

$\sqrt{3x-1}+\sqrt[5]{2y^5-4}$

$$\cos (2\theta) = \cos^2 \theta - \sin^2 \theta$$

$$ \lim\limits_{x \to \infty} \exp(-x) = 0 $$

$$ \frac{n!}{k!{n-k}!} = \binom{n}{k} $$
$$
\begin{matrix}
1 & 2 & 3 \
4 & 5 & 6 \
7 & 8 & 9
\end{matrix}
$$