如何防止在GitHub Wiki中自动生成链接? [英] How do I prevent auto-generated links in the GitHub wiki?
问题描述
在GitHub Wiki页面上,如果输入:
On a GitHub wiki page, if I type:
www.foobar.com
GitHub自动假定这是一个URL,并使文本成为指向 http://www.foobar.com .但是,有时我不希望创建超链接.有没有办法停止这种行为?也许某种降价促销?
GitHub automatically assumes this is a URL and makes the text a hyperlink to http://www.foobar.com. However, sometimes I do not want a hyperlink to be created. Is there a way to stop this behavior? Perhaps some sort of markdown?
推荐答案
This isn't limited to wiki page, and is part of the GFM (GitHub Flavored Markdown) url autolinking feature.
将它们放入``可以工作,但将URL显示为代码:foo http://example.com
bar.
Putting them in `` can work but display the url as a code: foo http://example.com
bar.
foo `http://example.com` bar
另一个技巧(在本要点中提到的)是
ht<span>tp://</span>example.com
这会将http://example.com显示为常规文本.
That will display http://example.com as regular text.
根据您的情况(不使用http://)
In your case (without the http://)
w<span>ww.</span>foobar.com
这还将把www.foobar.com显示为常规文本.
That would also display www.foobar.com as regular text.
这篇关于如何防止在GitHub Wiki中自动生成链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!