-
Is there a way to create a Web-Link dynamically, for example Is there a way to achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
-
Thanks, is there a simple example (not code snippets) on using the API Library. I struggle a bit in mixing SBT Plugin and the API Library. Resp. how to run it if I use only the API Library. |
Beta Was this translation helpful? Give feedback.
-
Ok - I found it - I should have checked the IO examples as well - this is what I need:). |
Beta Was this translation helpful? Give feedback.
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