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
The plain-text code is not properly escaped. So if it has < or >, those get rendered as literal tags and start throwing all kinds of HTML validation errors (this is currently affecting multiple pages on my site).
Steps to reproduce
Create a basic 11ty site with this plugin installed.
Create a markdown post with this code block:
```text
This <is> some text.
```
Observe that the rendered source has unescaped characters.
Example:
Question
Is this not how I should be using the text language? I can render fenced code blocks without specifying any language, but then I don't get any classes on the rendered pre/code or any nested spans. I was under the impression that text should still escape characters.
The text was updated successfully, but these errors were encountered:
kitschpatrol
added a commit
to kitschpatrol/eleventy-plugin-syntaxhighlight
that referenced
this issue
Feb 27, 2022
Problem
When using fenced code blocks like this:
The plain-text code is not properly escaped. So if it has
<
or>
, those get rendered as literal tags and start throwing all kinds of HTML validation errors (this is currently affecting multiple pages on my site).Steps to reproduce
Example:
Question
Is this not how I should be using the
text
language? I can render fenced code blocks without specifying any language, but then I don't get any classes on the renderedpre
/code
or any nested spans. I was under the impression thattext
should still escape characters.The text was updated successfully, but these errors were encountered: