AsciiDoc "referenced links" (as in Markdown)
Asked Answered
S

1

5

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.

Spellbound answered 21/8, 2016 at 17:21 Comment(0)
P
8

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.

Portie answered 22/8, 2016 at 10:3 Comment(1)
...awesome! Thanks!Spellbound

© 2022 - 2024 — McMap. All rights reserved.