HTML的参考列表,例如在Markdown中用于链接和图像的参考列表

发布于 2025-01-22 13:11:52 字数 630 浏览 1 评论 0原文

使Markdown可读的最重要的事情之一是参考列表,其中包含链接和图像的URL,然后在可见文本中显示为[name_link]作为非常平静且可读的替代参考列表中的实际链接。([name_link](https://example.com)

我一直很欣赏此技术。我的问题是:有人可以向我展示一种在HTML中以MD而做到这一点的方法吗?如果可能的话,最好只需html/css;)我不介意阅读HTML源文本中的简短标签,例如&lt; b&gt; ,,&lt; p&gt; ,,&lt&lt; h2&gt;等等。< /code>,但是如果我们能摆脱较长的链接和图像!****,那就太好了


伯特

[编辑4月22日]也许我应该更好地解释。我正在为Webwriters制作一个小项目,试图尽可能直接地在HTML中提高写作体验,以便一旦对HTML的最初担忧消失了,它就成为Wysiwyg或Markdown的可行替代方法。目标是使它比那些人更容易……我是专业业余爱好者...如果有兴趣,请参见 featherweb

One of the most important things making markdown readable, is the reference list, containing the urls of links and images, which then appear in the visible text as [name_link] as a very calm and readable substitution for the real link in the ref list.( [name_link](https://example.com) )

I've always admired this technique. My question is: can someone show me a way to do this in html in stead of md? If possible without heavy coding, preferably just html/css ;) I don't mind reading short tags in a html source text, like <b>,<p>,<h2>, etc.., but it would be great if we could get rid of the longer ones for links and images!****

Gratefully!
bert

[Edit April 22] Maybe I should explain a little better. I'm working on a little project for webwriters, trying to improve the experience of writing in html directly as much as possible, so that , once the original fears for html are gone, it becomes a viable alternative to wysiwyg or markdown. Goal is to make it even easier than those... I'm a professional amateur... If interested, see featherweb

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文