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. ↩︎