如何使用

链接到 URL 和电子邮件,您无需做任何事情它们都会自动链接。若要在评论的文本中链接到某些 URL,您可以使用 Markdown 语法

[Text you want to see](http://url-goes-here.com)

示例

JavaScript

/**
 * Prism: Lightweight, robust, elegant syntax highlighting
 * MIT license http://www.opensource.org/licenses/mit-license.php/
 * @author Lea Verou http://lea.verou.me
 * Reach Lea at [email protected] (no, not really)
 * And this is [a Markdown link](https://prism.npmjs.net.cn). Sweet, huh?
 */
var foo = 5;
// And a single line comment http://google.com

CSS

@font-face {
	src: url(http://lea.verou.me/logo.otf);
	font-family: 'LeaVerou';
}

HTML

<!-- Links in HTML, woo!
Lea Verou http://lea.verou.me or, with Markdown, [Lea Verou](http://lea.verou.me) -->
<img src="https://prism.npmjs.net.cn/assets/img/spectrum.png" alt="In attributes too!" />
<p>Autolinking in raw text: https://prism.npmjs.net.cn</p>