参考样式链接非常有用,因为我可以通过名称来引用链接.例如,在Markdown我习惯做类似的事情:
The [Web site][tag-web-site] references...blah.
[tag-web-site]: https://web-site-url.tld
Run Code Online (Sandbox Code Playgroud)
...它将根据tag-web-site参考创建一个链接.
有什么办法可以在AsciiDoc中模仿这个功能吗?我试过但到目前为止我找不到任何东西.
AsciiDoc没有引用样式链接,但您可以将属性(变量)用于相同目的.
= Title
:tag-web-site: https://web-site-url.tld
The {tag-web-site}[Web site] references...blah.
Run Code Online (Sandbox Code Playgroud)
这些属性通常带有uri-一样uri-web-site.