常用的语法不表,这里汇总下还不熟悉的.
分割线
在一行中用三个以上的星号、减号、底线来建立一个分隔线,行内不能有其他东西。
***
任务列表
- [x]
- this is a complete item
- []
- this is an incomplete item
html语法
因为markdown兼容html语法,所以可以在markdown中用一些html的语法.常用的有:
输入 | 显示 | 输入 | 显示 |
---|---|---|---|
<br> | 换行 | | 空格 |
数学运算符
输入 | 显示 | 输入 | 显示 | 输入 | 显示 |
---|---|---|---|---|---|
\pm | \times | \div | |||
\le | \ge | \neq | |||
\approx | \sum | \prod | |||
\in | \notin | \subseteq | |||
\prime | \propto | \infty |
戴帽符号
输入 | 显示 | 输入 | 显示 |
---|---|---|---|
\bar{x} | \overline{xy} | ||
\hat{x} | \widehat{xy} | ||
\tilde{x} | \widetilde{xy} | ||
\overrightarrow{x} |
矩阵
$\begin{matrix} 1 & 2 \\ 3 & 4 \\ \end{matrix}$
$\begin{pmatrix} 1 & 2 \\ 3 & 4 \\ \end{pmatrix}$
$\begin{bmatrix} 1 & 2 \\ 3 & 4 \\ \end{bmatrix}$
matrix | pmatrix | bmatrix |
---|---|---|