如何向 AsciiDoc 中的参考书目项目添加外部链接

问题描述 投票:0回答:1

下面是我的

bibliography
部分:

[bibliography]
- [[[ref1, 1]]] Philippe Kruchten. link:https//www.cs.ubc.ca/~gregor/teaching/papers/4+1view-architecture.pdf[The “4+1” View Model of Software Architecture].
  Rational Software Corp. 1995.

它渲染正确...但链接不起作用。如果我将鼠标悬停在该链接上,我会看到上面的 URL 已附加到我的文档的 URL 中。我是不是错过了什么?

asciidoc asciidoctor
1个回答
0
投票

是的,您不需要

link
宏,因为 HTTP/S 链接被视为宏。

这应该像你期望的那样工作:

[bibliography]
- [[[ref1, 1]]] Philippe Kruchten. https//www.cs.ubc.ca/~gregor/teaching/papers/4+1view-architecture.pdf[The “4+1” View Model of Software Architecture].
  Rational Software Corp. 1995.
© www.soinside.com 2019 - 2024. All rights reserved.