Closed agoncal closed 2 years ago
This syntax is not documented.
In fact, this syntax is documented on the following page: https://docs.asciidoctor.org/asciidoc/latest/macros/inter-document-xref/
The problem is that the documentation is very sparse. It also doesn't address why the xref macro is preferred over the shorthand for this particular case. So it can stand to be elaborated.
For many years I've been using the following syntax when it comes to have chapter cross references:
But sometimes I need to use both
short
andbasic
style. Thanks to Dan[1] I discovered thexref:
syntax[2]:This syntax is not documented. Neither on the manual[3] nor the guide[4]. Maybe this should be documented in the "Customizing the Cross Reference Text" section[5] of the manual ? Something like:
WDYT?
[1] https://twitter.com/mojavelinux/status/1311398097226883072 [2] https://github.com/asciidoctor/asciidoctor/blob/master/features/xref.feature#L1049 [3] https://asciidoctor.org/docs/user-manual/ [4] https://asciidoctor.org/docs/asciidoc-writers-guide/ [5] https://asciidoctor.org/docs/user-manual/#customizing-the-cross-reference-text