Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AsciiDoc "referenced links" (as in Markdown)

Reference-style links are quite useful since I can refer to the links by its names. For instance, in Markdown I'm used to do something like:

The [Web site][tag-web-site] references...blah.

[tag-web-site]: https://web-site-url.tld

...and it will create a link based on the tag-web-site reference.

Is there any way I can mimic this functionality in AsciiDoc? I've tried but so far I can't find anything.

like image 669
x80486 Avatar asked Aug 21 '16 17:08

x80486


1 Answers

AsciiDoc doesn’t have reference-style links, but you can use attributes (variables) for the same purpose.

= Title
:tag-web-site: https://web-site-url.tld

The {tag-web-site}[Web site] references...blah.

Such attributes are usually prefixed with uri-, like uri-web-site.

like image 163
Jakub Jirutka Avatar answered Nov 12 '22 05:11

Jakub Jirutka