markdown:汇总

常用的语法不表,这里汇总下还不熟悉的.

分割线

在一行中用三个以上的星号、减号、底线来建立一个分隔线,行内不能有其他东西。
***


任务列表

- [x]

  • this is a complete item

- []

  • this is an incomplete item

html语法

因为markdown兼容html语法,所以可以在markdown中用一些html的语法.常用的有:

输入 显示 输入 显示
<br> 换行 &nbsp; 空格

数学运算符

输入 显示 输入 显示 输入 显示
\pm ±\pm \times ×\times \div ÷\div
\le \le \ge \ge \neq \neq
\approx \approx \sum \sum \prod \prod
\in \in \notin \notin \subseteq \subseteq
\prime \prime \propto \propto \infty \infty

戴帽符号

输入 显示 输入 显示
\bar{x} xˉ\bar{x} \overline{xy} xy\overline{xy}
\hat{x} x^\hat{x} \widehat{xy} xy^\widehat{xy}
\tilde{x} x~\tilde{x} \widetilde{xy} xy~\widetilde{xy}
\overrightarrow{x} x\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
1234\begin{matrix} 1 & 2 \\ 3 & 4 \\ \end{matrix} (1234)\begin{pmatrix} 1 & 2 \\ 3 & 4 \\ \end{pmatrix} [1234]\begin{bmatrix} 1 & 2 \\ 3 & 4 \\ \end{bmatrix}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章