dav*_*vid 31 markdown github hyperlink autolink github-flavored-markdown
在GitHub维基页面上,如果我输入:
www.foobar.com
GitHub自动假定这是一个URL,并使文本成为http://www.foobar.com的超链接.但是,有时我不希望创建超链接.有没有办法阻止这种行为?也许某种降价?
Von*_*onC 34
这不仅限于维基页面,也是GFM(GitHub Flavored Markdown)网址自动链接功能的一部分.
把它们放在``可以工作但是将url显示为代码:foo http://example.combar.
foo `http://example.com` bar
另一个技巧(在这个要点中提到)是
ht<span>tp://</span>example.com 
这将显示http://example.com作为常规文本.
在你的情况下(没有http://)
w<span>ww.</span>foobar.com
这也将www.foobar.com显示为常规文本.
您也可以将反斜杠转义应用于冒号(或任何其他标点符号,显然),如下所示:
http\://www.foobar.com
小智 8
建议使用零宽度不间断空格。
\n在 HTML 中可用作 Unicode 字符引用:或
好处是:
\n例子
\n对于网址,请在http和:
\n https\xe2\x80\x8b://example.com/\xe2\x86\x92 https\xe2\x80\x8b\xef\xbb\xbf://example.com/之间插入
对于电子邮件,请在以下位置插入@:
\n user@example.com\xe2\x86\x92 user@\xef\xbb\xbfexample.com
小智 6
Also, if you are having a issue with something other than a URL auto-linking I found escaping the . works as well.
Example:
foobar.web -> foobar.web
| 归档时间: | 
 | 
| 查看次数: | 9071 次 | 
| 最近记录: |