Can antlers be nested inside markdown links? #11350
Unanswered
NoelDeMartin
asked this question in
Q&A
Replies: 1 comment 2 replies
-
OK first, are you using markdown for your content intentionally, instead of a Bard field? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I recently started migrating my Laravel site to Statamic, so forgive me if this question is too stupid 🙈. Previously I had many content pages hard-coded in html, and I'm going through the process of migrating most of them to Markdown which is pretty nice.
However, I've been struggling to understand where I can or can't use the antlers syntax. For example, it seems like by default it is disabled inside of markdown. But I could enable it with the
antlers
option for the field.But now I'm facing a new issue. Whenever I use antlers inside of Markdown links, it doesn't work.
To see a specific example, this is what I write in the markdown (I defined
contact:email
as a global variable):And this is how it gets rendered:
As you can see, both 1 and 2 are broken. The first because it doesn't render a link, and the second because it's escaping the antlers syntax. But it works writing a link by hand :/. Is there any way to work around that?
Beta Was this translation helpful? Give feedback.
All reactions