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
This plugin renders the lektor content as Jinja by design. We may want to write jinja code in the content, however. Usually encapsulating the entire thing in {% raw %} and {% endraw %} tags is good enough, except when you need to use those tags within the content. There doesn't appear to be an intrinsic way to escape {% endraw %} specifically (see comments in https://stackoverflow.com/a/25359906). Using html entities (e.g. {, }, %) could be a solution, but this does not seem to work when nested within a markdown code block, further complicating the issue.
The text was updated successfully, but these errors were encountered:
There's some non-mutually exclusive ways the plugin could handle this.
For one, there should be a way to disable this plugin per page, field, or page and field. Sometimes you might really want the plugin, and just be able to escape like this though. Maybe to enable that, the plugin could use another custom tag to allow {% endraw %} to pass through as raw itself.
This plugin renders the lektor content as Jinja by design. We may want to write jinja code in the content, however. Usually encapsulating the entire thing in
{% raw %}
and{% endraw %}
tags is good enough, except when you need to use those tags within the content. There doesn't appear to be an intrinsic way to escape{% endraw %}
specifically (see comments in https://stackoverflow.com/a/25359906). Using html entities (e.g.{
,}
,%
) could be a solution, but this does not seem to work when nested within a markdown code block, further complicating the issue.The text was updated successfully, but these errors were encountered: