可以在安装有MarkDown插件的sublime text 打开查看效果

类 Setext 形式是用底线的形式,利用 = (最高阶标题)和 - (第二阶标题),例如:


This is an H1

=============


This is an H2

-------------

任何数量的 = 和 - 都可以有效果。




类 Atx 形式则是在行首插入 1 到 6 个 # ,对应到标题 1 到 6 阶,例如:


# 这是 H1


## 这是 H2


###### 这是 H6

你可以选择性地「闭合」类 atx 样式的标题,这纯粹只是美观用的,若是觉得这样看起来比较舒适,你就可以在行尾加上 #,而行尾的 # 数量也不用和开头一样(行首的井字符数量决定标题的阶数):


# 这是 H1 #


## 这是 H2 ##


### 这是 H3 ######



区块引用则使用 email 形式的 '>' 角括号。


Now is the time for all good men to come to

the aid of their country. This is just a

regular paragraph.


The quick brown fox jumped over the lazy

dog's back.

> This is a blockquote.

> This is the second paragraph in the blockquote.

>

> ## This is an H2 in a blockquote



Some of these words *are emphasized*.

Some of these words _are emphasized also_.

Use two asterisks for **strong emphasis**.

Or, if you prefer, __use two underscores instead__.




使用星号


* Candyhe

* Gum.

* Booze.


加号


+ Candy.

+ Gum.

+ Booze.


减号


- Candy.

- Gum.

- Booze.


number

1. one

2. two

3. three


charactor

a. one

b. two

c.  three


other

* A list item.

With multiple paragraphs.

* Another item in the list.


This is an [example link](http://example.com/).

This is an [example link](http://example.com/ "With a Title").




I get 10 times more traffic from [Google][1] than from

[Yahoo][2] or [MSN][3].


[1]: http://google.com/ "Google"

[2]: http://search.yahoo.com/ "Yahoo Search"

[3]: http://search.msn.com/ "MSN Search"


I get 10 times more traffic from [Google][] than from

[Yahoo][] or [MSN][].


  [google]: http://google.com/        "Google"

  [yahoo]:  http://search.yahoo.com/  "Yahoo Search"

  [msn]:    http://search.msn.com/    "MSN Search"



图片


图片的语法和链接很像。


行内形式(title 是选择性的):


![alt text](/path/to/img.jpg "Title")

参考形式:


![alt text][id]


[id]: /path/to/img.jpg "Title"



I strongly recommend against using any `<blink>` tags.


I wish SmartyPants used named entities like `&mdash;`

instead of decimal-encoded entites like `&#8212;`.


要在 Markdown 中建立代码区块很简单,只要简单地缩进 4 个空格或是 1 个制表符就可以,例如,下面的输入:


这是一个普通段落:


    这是一个代码区块。





``There is a literal backtick (`) here.``


代码


如果要标记一小段行内代码,你可以用反引号把它包起来(`),例如:


Use the `printf()` function.



下面每种写法都可以建立分隔线:


* * *


***


*****


- - -


---------------------------------------