Markdown快速入門

注:詳細(xì)內(nèi)容請前往此處
Dingus 是一個網(wǎng)頁應(yīng)用程序,你可以把自已編寫的 Markdown 文檔轉(zhuǎn)成 XHTML。

段落、標(biāo)題、區(qū)塊代碼:

Markdown 支持兩種標(biāo)題的語法,Setext 和 atx 形式。Setext 形式是用底線的形式,利用 = (最高階標(biāo)題)和 - (第二階標(biāo)題),Atx 形式在行首插入 1 到 6 個 # ,對應(yīng)到標(biāo)題 1 到 6 階。
區(qū)塊引用則使用 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

結(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.

列表

無序列表使用星號、加號和減號來做為列表的項目標(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é)果:

jqm

2. 參考:
示例:
![alt text][id]
注意:這里有一空行
[id]: /path/to/jqm.jpg "Title"

結(jié)果:

jqm

代碼

插入HTML代碼,需要用反引號來標(biāo)記代碼區(qū)段。
示例:
I strongly recommend against using any `<blink>` tags.

I wish SmartyPants used named entities like `&mdash;`
instead of decimal-encoded entites like `&#8212;`.

結(jié)果:
I strongly recommend against using any <blink> tags.

I wish SmartyPants used named entities like &mdash;
instead of decimal-encoded entites like &#8212;.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 標(biāo)題 標(biāo)題是每篇文章都需要也是最常用的格式,在 Markdown 中,如果一段文字被定義為標(biāo)題,只要在這段文字前加...
    Nic_ofh閱讀 259評論 0 1
  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi閱讀 7,858評論 0 10
  • **2014真題Directions:Read the following text. Choose the be...
    又是夜半驚坐起閱讀 11,147評論 0 23
  • 抄寫句子,字字有溫~集合一篇,咂味一番,也是小結(jié)吧 以前的感情很決絕~ 清醒的人最荒唐~ 練字進(jìn)行中~ 畫字兒進(jìn)行...
    faner_911b閱讀 279評論 2 2
  • 我在床上睡覺的時候,突然聽到了一種聲音,“酥酥酥酥”,好奇的我披上了睡衣,悄悄的推開了冰冷的窗戶。 ...
    徐寅博閱讀 509評論 2 3

友情鏈接更多精彩內(nèi)容