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.
本文的引用也是採用這種形式
Here is the text of the footnote. ↩︎