-
-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using markdown inside a paired shortcode #536
Comments
Yeah, I have run into this too and I don’t like it. 👍 |
I ran a bunch of tests for this and most of them worked. There was one particular case of this that I did run into which felt unintuitive but was actually technically correct. Specifically, this worked:
with
This worked too:
with
However, this didn’t work:
via https://github.com/11ty/11ty.io/blob/master/.eleventy.js#L58 Usage:
Any nested content in there had to be HTML and not Markdown because it was wrapped in HTML in the shortcode. This wouldn’t work:
BECAUSE the output would be:
And baseline markdown can’t embed markdown inside of HTML like that. |
Does that make sense? |
So, to circle back to your original request and the research above, please follow along at enhancement request #148 to allow you to parse markdown inside of your shortcode function itself. |
|
Worth nothing that I added a workaround for this in my repo specifically https://github.com/11ty/11ty.io/blob/master/.eleventy.js#L59 |
I am using a nunjucks paired shortcode in a markdown file. The markdown within the paired shortcode is returned as it is in the shortcode function. Is it possible to get the compiled output of markdown?
The text was updated successfully, but these errors were encountered: