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
Describe the bug
I'm using 11ty/eleventy-plugin-syntaxhighlight to highlight code with prism in a .md file.
When trying to highlight twig syntax, eleventy fails to build and I get:
> Having trouble rendering liquid (and markdown) template ./src/posts/test-post.md
`TemplateContentRenderError` was thrown
> Having trouble compiling template ./src/posts/test-post.md
`TemplateContentCompileError` was thrown
> tag set not found, file:./src/posts/test-postmd, line:12
`ParseError` was thrown
> tag set not found
`AssertionError` was thrown:
AssertionError: tag set not found
....
I'm assuming this is because I'm trying to output this:
....
{% seturl= lang.getBaseUrl() %}
To Reproduce
Steps to reproduce the behavior:
Install eleventy-plugin-syntaxhighlight
paste this in a markdown file:
{% settest='test '% }
See error
Expected behavior
I would expect that everything in prism tags gets ignore and is not interpreted as actual code
Environment:
MacOS Catalina 10.15.7
Eleventy Version 6.14.4
The text was updated successfully, but these errors were encountered:
Managed to solve this by switching from .ejs to .njk. Issue was with .ejs, don't have the code live anywhere I'm afraid. Did start of from https://github.com/ixartz/Eleventy-Starter-Boilerplate, so that might be a good place to test it on.
For future folks, if the syntax you’re trying to highlight conflicts with the syntax of the parent template, many template languages have a raw output feature. Wrap your syntax highlighted block of code with the raw tag!
Describe the bug
I'm using
11ty/eleventy-plugin-syntaxhighlight
to highlight code with prism in a.md
file.When trying to highlight twig syntax, eleventy fails to build and I get:
I'm assuming this is because I'm trying to output this:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect that everything in prism tags gets ignore and is not interpreted as actual code
Environment:
The text was updated successfully, but these errors were encountered: