-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Markdown intercepts indented HTML blocks #357
Comments
remember that indentation affects how the markdown is rendered |
It shouldn't be processed at all unless I use markdown attribute. <div markdown>
<div>
<div>
<div>
text
</div>
<div>
text
</div>
</div>
</div>
</div> |
This is indeed a bug but a hard one to tackle, due to efficiency constraints. I have a fix, but it slows down the parser considerably. |
Until I can find a suitable fix, that doesn't slow down the parser too much, the workaround is not indenting html code. |
Why do you have this showdown/src/subParsers/hashHTMLBlocks.js Line 52 in 072973a
It can't be to avoid capturing indented code blocks as these are hashed away already, no? |
Ah I see that indented code blocks are processed later. |
Yes, they have to be processed AFTER HTML is hashed |
@tivie - you talk about performance issues with your possible solution. Can you give me a pointer to how to run the performance tests as I would be interested in offering a PR for this issue but not if my solution also suffers from performance degradation. |
If you install dev dependencies, you can run the command |
Although performance degradation, in this case, is best seen with documents with "indented HTML". |
This should (hopefully) be fixed now, without much performance issues. |
Deeply nested HTML tags are not rendered properly, markdown somehow intercepts.
Renders into
See codepen http://codepen.io/anon/pen/wJedgq
The text was updated successfully, but these errors were encountered: