注:详细内容请前往此处。
Dingus 是一个网页应用程序,你可以把自已编写的 Markdown 文档转成 XHTML。
段落、标题、区块代码:
Markdown 支持两种标题的语法,Setext 和 atx 形式。Setext 形式是用底线的形式,利用 = (最高阶标题)和 - (第二阶标题),Atx 形式在行首插入 1 到 6 个 # ,对应到标题 1 到 6 阶。
区块引用则使用 email 形式的 '>' 角括号.
示例:
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
结果:
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
修辞和强调
斜体:*或_
加粗:**或__
示例:
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__.
结果:
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.
列表
无序列表使用星号、加号和减号来做为列表的项目标记。
示例:
* Candy.
* Gum.
* Booze.
+ Candy.
+ Gum.
+ Booze.
- Candy.
- Gum.
- Booze.
结果:
- Candy.
- Gum.
- Booze.
- Candy.
- Gum.
- Booze.
- Candy.
- Gum.
- Booze.
链接
1. 行内:
示例: This is an[example link](http://example.com/).
结果: 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"
结果:
I get 10 times more traffic from Google than fromYahoo or MSN.
图片
1. 行内:
示例: ![jqm](/path/to/jqm.jpg "Title")
结果:
2. 参考:
示例:
![alt text][id]
注意:这里有一空行
[id]: /path/to/jqm.jpg "Title"
结果:
代码
插入HTML代码,需要用反引号来标记代码区段。
示例:
I strongly recommend against using any `<blink>` tags.
I wish SmartyPants used named entities like `—`
instead of decimal-encoded entites like `—`.
结果:
I strongly recommend against using any <blink>
tags.
I wish SmartyPants used named entities like —
instead of decimal-encoded entites like —
.