Replies: 1 comment 4 replies
-
There is a section on indented code in https://www.11ty.dev/docs/languages/markdown/#indented-code-blocks |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have created a filter
{{ "file.html | "include" }
that reads a file and returns its content. The idea is to make small HTML-first (accessible) examples and use it in the markdown so that they are rendered without the need for Javascript in browser.Everything works correctly, but when I indent the HTML code on
file.html
, it is parsed as markdown.For example, a
<style>
block, indentations are interpreted as markdown and the CSS code has HTML tags inside. I understand that this is because of the "fenced code" spaces feature (I use markdown-it).What's the best way to approach this and prevent those
.html
files from being processed by markdown?Beta Was this translation helpful? Give feedback.
All reactions