Markdown语法速查
Markdown语法速查
段落排版
# This is H1
## This is H2
### This is H3
#### This is H4
##### This is H5
###### This is H6
数字列表
1. Ordered list item 2. Ordered list item 3. Ordered list item
非排序列表
- Unordered list item - Unordered list item - Unordered list item
or
* Unordered list item * Unordered list item * Unordered list item
嵌套列表(两个tab)
- item_one - item_two - sub_item_one - sub_item_two
强调
**strong**
__strong__
斜体
*emphasize*
_emphasize_
普通的Markdown中的code语法
嵌入式代码
`some code`
代码块
Indent each line by at least 1 tab, or 4 spaces. var Mou = exactlyTheAppIwant;
另一种代码块
```
Fenced code blocks are like Stardard Markdown’s regular code
blocks, except that they’re not indented and instead rely on
a start and end fence lines to delimit the code block.
```
Pandoc中的code语法
~~~{.c}
int main()
{
print("hello");
}
~~~
链接
直接链接<http://www.sina.com.cn>
带文字的链接[sina](http://www.sina.com.cn)
带tooltip的链接 [sina](http://www.sina.com.cn "新浪Tooltip")
引用式链接[sina][id].
[id]: http://www.sina.com.cn "新浪Tooltip"
图片
普通图片 ![Smaller icon](http://smallerapp.com/favicon.ico "Title here") 引用式图片 A ![Resize icon][2] reference style image. [2]: http://resizesafari.com/favicon.ico "Title"
引用
> Right angle brackets > are used for block quotes.
表格
| First Header | Second Header | Third Header | | ------------ | ------------- | ------------ | | Content Cell | Content Cell | Content Cell | | Content Cell | Content Cell | Content Cell |
脚注
That's some text with a footnote.[^1] [^1]: And that's the footnote.