Skip to content

Dynamic Link #318

Answered by jenshalm
pme123 asked this question in Q&A
Aug 23, 2022 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

The variable substitution you tried is mostly just supported on the top level of markup sources, not as part of syntax that is specific to a particular markup format such as Markdown. I agree that it would be neat if the above would just work, but it's non-trivial to support, which means it's out of scope for 0.19.

In the meantime you could try link directives instead. They require a bit of setup, but at least they are also more convenient when you use the same approach multiple times, as you only have to define the base URL in one place. Details about link directives can be found here: https://planet42.github.io/Laika/0.18/05-extending-laika/03-implementing-directives.html#link-directives

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by pme123
Comment options

You must be logged in to vote
1 reply
@jenshalm
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants