Open cjohansen opened 4 years ago
Not at the moment, the parser isn't HTML aware, so while it will leave tags alone, it doesn't actually understand their semantics.
But at the very least, I would only expect four spaces indent to trigger a code block if the block is surrounded by blank lines? So in my eca, even if the parser is not html aware, the presence of text on the immediate line before which is not four space indented should prevent the creation of a code block?
That actually looks like a bug where the parser doesn't check if the last line was empty before checking for the 4 space indent. I guess it just hasn't come up until now.
I put some HTML in a markdown file, nad markdown-clj treated parts of it as an indented code block. This differs from the pegdown parser I switched from. E.g.:
Passing this through the parser I get
<p>Element #1</p>
extracted as a verbatim code sample, which is not what I wanted. Any way to work around this?