-
-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable "indented code" feature? #157
Comments
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?The text was updated successfully, but these errors were encountered: