markdown 鏈接方式

MarkDown 鏈接方式

1. 目錄形式

@[toc]

效果如本文的目錄樣式

2. 行內鏈接 Inline-style links1

  • 帶標題

     This is [an example](http://example.com/ "這是標題") inline link.
    

    效果:
    This is an example inline link.

  • 不帶標題

      [This link](http://example.net/) has no title attribute.
    

    效果:
    This link has no title attribute.

3. 參考樣式鏈接 Reference-style links1

This is [an example][id2] reference-style link.

[id1]: http://example.com/  "Optional Title Here"
[ID2]: http://example.com/  "Optional Title Here"
[Id3]: http://example.com/  'Optional Title Here'
[id4]: http://example.com/  (Optional Title Here)

效果:

This is an example reference-style link.

隱式鏈接名

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"

效果:
I get 10 times more traffic from Google than from
Yahoo or MSN.

備註:

鏈接名(id1,id2等)不區分大小寫

4. 腳註 footnote2

You can create footnotes like this[^foot].

[^foot]: Here is the *text* of the **footnote**.

效果:

You can create footnotes like this3.

本文的引用也是採用這種形式


  1. Markdown API ↩︎ ↩︎

  2. 將Markdown行內式鏈接轉爲文末參考式鏈接 ↩︎

  3. Here is the text of the footnote. ↩︎

發佈了70 篇原創文章 · 獲贊 76 · 訪問量 22萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章