hyperlink - Markdown 中没有文本的链接是否有语法?

标签 hyperlink markdown

我想写

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/

相关文章:

php - 使用超链接从数据库获取帖子内容 - PHP

html - 链接 css 和 html 文件

excel - Excel 能否将 CSV 中的 URL 解释为超链接?

github - 从外部文件中包含的 .md 文档中的表格

python - 使用 Python markdown Treeprocessor 包装 etree 元素

r - 是否可以在 github 上放置 R 代码的自述文件,显示输出?

ruby - Middleman & Haml 与 Github 风格的围栏代码块

java - JSF 2.2 - 未找到 "link"标签

html - 使链接完全不可见?

formatting - 如何在代码/预 block 中添加 Markdown 格式?