我想写
http://www.foo.com/
并获取以 URL 为文本的链接(例如,在 HTML 输出中)。我不想写
[http://www.foo.com/](http://www.foo.com/)
是否可以?
最佳答案
是的,这里是 relevant section of the documentation :
AUTOMATIC LINKS
Markdown supports a shortcut style for creating “automatic” links for URLs and email addresses: simply surround the URL or email address with angle brackets. What this means is that if you want to show the actual text of a URL or email address, and also have it be a clickable link, you can do this:
<http://example.com/>
Markdown will turn this into:
<a href="http://example.com/">http://example.com/</a>
关于hyperlink - Markdown 中没有文本的链接是否有语法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24887301/