常用的語法不表,這裏彙總下還不熟悉的.
分割線
在一行中用三個以上的星號、減號、底線來建立一個分隔線,行內不能有其他東西。
***
任務列表
- [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 |
---|---|---|