You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So here’s a working copy of the template in question:
{% renderTemplate "md" %}
# I expect this to output an h1 and 2 list items
* I am a list
* I am a list
{% endrenderTemplate %}
{% renderTemplate "liquid,md" %}
> I expect this to output the markdown from the shortcode
{% outputMD %}
{% endrenderTemplate %}
This prompted me to file 11ty/eleventy#2438 and I’m ready to get rid of that feature by default :D
I wonder if we should do something fancier with deindent on render templates? I’m not sure.
The other thing is that {% renderTemplate "md" %} doesn’t use the liquid/njk preprocessors by default, so you need to opt-in to that like this {% renderTemplate "liquid,md" %}
The text was updated successfully, but these errors were encountered:
So here’s a working copy of the template in question:
A few things, you got bit by the dreaded indented code blocks feature of Markdown https://www.11ty.dev/docs/languages/markdown/#there-are-extra-and-in-my-output
This prompted me to file 11ty/eleventy#2438 and I’m ready to get rid of that feature by default :D
I wonder if we should do something fancier with deindent on render templates? I’m not sure.
The other thing is that
{% renderTemplate "md" %}
doesn’t use the liquid/njk preprocessors by default, so you need to opt-in to that like this{% renderTemplate "liquid,md" %}
The text was updated successfully, but these errors were encountered: