Markdown中没有文本的链接有语法吗? [英] Is there a syntax for links with no text in Markdown?

查看:247
本文介绍了Markdown中没有文本的链接有语法吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写

http://www.foo.com/ 

并获得以URL为文本的链接(例如,在HTML输出中).我不想写

and get a link with the URL as the text (e.g., in HTML output). I do not want to write

[http://www.foo.com/](http://www.foo.com/)

有可能吗?

推荐答案

是的,这是文档的相关部分:

自动链接

Markdown支持为URL和电子邮件地址创建自动"链接的快捷方式:只需用尖括号将URL或电子邮件地址括起来即可.这意味着,如果您想显示URL或电子邮件地址的实际文本,并且还希望将其作为可点击的链接,则可以执行以下操作:

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会将其转换为:

Markdown will turn this into:

<a href="http://example.com/">http://example.com/</a>

这篇关于Markdown中没有文本的链接有语法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆