注:詳細(xì)內(nèi)容請(qǐng)前往此處容诬。
Dingus 是一個(gè)網(wǎng)頁(yè)應(yīng)用程序相速,你可以把自已編寫(xiě)的 Markdown 文檔轉(zhuǎn)成 XHTML屹堰。
段落葛闷、標(biāo)題、區(qū)塊代碼:
Markdown 支持兩種標(biāo)題的語(yǔ)法双藕,Setext 和 atx 形式。Setext 形式是用底線的形式阳仔,利用 = (最高階標(biāo)題)和 - (第二階標(biāo)題)忧陪,Atx 形式在行首插入 1 到 6 個(gè) # ,對(duì)應(yīng)到標(biāo)題 1 到 6 階近范。
區(qū)塊引用則使用 email 形式的 '>' 角括號(hào).
示例:
A First Level Header
====================
A Second Level Header
---------------------
Now is the time for all good men to come to
the aid of their country. This is just aregular paragraph.
The quick brown fox jumped over the lazydog's back.
### Header 3
> This is a blockquote.
>
> This is the second paragraph in the blockquote.
>
> ## This is an H2 in a blockquote
結(jié)果:
A First Level Header
A Second Level Header
Now is the time for all good men to come to
the aid of their country. This is just aregular paragraph.
The quick brown fox jumped over the lazydog's back.
Header 3
This is a blockquote.
This is the second paragraph in the blockquote.
This is an H2 in a blockquote
修辭和強(qiáng)調(diào)
斜體:*或_
加粗:**或__
示例:
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__.
結(jié)果:
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.
列表
無(wú)序列表使用星號(hào)嘶摊、加號(hào)和減號(hào)來(lái)做為列表的項(xiàng)目標(biāo)記。
示例:
* Candy.
* Gum.
* Booze.
+ Candy.
+ Gum.
+ Booze.
- Candy.
- Gum.
- Booze.
結(jié)果:
- Candy.
- Gum.
- Booze.
- Candy.
- Gum.
- Booze.
- Candy.
- Gum.
- Booze.
鏈接
1. 行內(nèi):
示例: This is an[example link](http://example.com/).
結(jié)果: This is an example link.
2. 參考:
示例:
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"
結(jié)果:
I get 10 times more traffic from Google than fromYahoo or MSN.
圖片
1. 行內(nèi):
示例: ![jqm](/path/to/jqm.jpg "Title")
結(jié)果:
2. 參考:
示例:
![alt text][id]
注意:這里有一空行
[id]: /path/to/jqm.jpg "Title"
結(jié)果:
代碼
插入HTML代碼评矩,需要用反引號(hào)來(lái)標(biāo)記代碼區(qū)段叶堆。
示例:
I strongly recommend against using any `<blink>` tags.
I wish SmartyPants used named entities like `—`
instead of decimal-encoded entites like `—`.
結(jié)果:
I strongly recommend against using any <blink>
tags.
I wish SmartyPants used named entities like —
instead of decimal-encoded entites like —
.