Cir*_*四事件 6 asciidoc asciidoctor
在降价我可以写:
[example1][myid]
[example2][myid]
[myid]: http://example.com
Run Code Online (Sandbox Code Playgroud)
所以我不必多次重新输入完整的外部链接。
AsciiDoc 中是否有类似的功能?对 Asciidoctor 实现特别感兴趣。
到目前为止,我只能找到:
<<>>:myid:,但我再也找不到了。但是我没有看到如何为每个链接使用不同的文本。dev*_*eek 10
我想你正在寻找这个(两者都可以正常工作),
https://www.google.com[Google]
Run Code Online (Sandbox Code Playgroud)
或者
link: https://google.com[Google]
Run Code Online (Sandbox Code Playgroud)
参考: Ascii Doc 用户手册链接
:url: https://www.google.com
Run Code Online (Sandbox Code Playgroud)
使用“带标签的链接”
{url}[Google]
Run Code Online (Sandbox Code Playgroud)使用相对链接
link:{url}[Google]
Run Code Online (Sandbox Code Playgroud)可能你的意思是这样的:
用户指南第 28.1 章。设置配置条目
... 属性条目提高清晰度并消除重复 URL 和 AsciiDoc3 宏中的文件名通常很长?-?它们会破坏段落流和可读性。如果重复使用相同的名称,则问题会因冗余而复杂化。属性条目可用于使您的文档更易于阅读和编写,以下是一些示例:
:1: http://freshmeat.net/projects/asciidoc3/
:homepage: http://asciidoc3.org[AsciiDoc3 home page]
:new: image:./images/smallnew.png[]
:footnote1: footnote:[A meaningless latin term]
Using previously defined attributes: See the {1}[Freshmeat summary]
or the {homepage} for something new {new}. Lorem ispum {footnote1}.
Run Code Online (Sandbox Code Playgroud)
...
顺便说一句,现在有一个 100% 的 Python3 端口可用:https ://asciidoc3.org
| 归档时间: |
|
| 查看次数: |
1090 次 |
| 最近记录: |