Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Incorrectly parses certain embedded html #25

Open
mvgrimes opened this Issue Oct 22, 2013 · 1 comment

Comments

Projects
None yet
2 participants

The following html (which was embedded in a large markdown file):

<!-- comment -->
<style>
</style>
<div>
</div>
<!-- comment -->

is incorrectly converted into:

<!-- comment -->
<style>
</style>

1c450cea280a1905a112821f9f56ad46

<!-- comment -->

This occurs for any HTML block following the style section (ie, form, p).

Contributor

daleevans commented Mar 3, 2015

This problem occurs when processing any block level element that is surrounded by an HTML comment. A mimimal test case is:

<!--

<div></div>

-->

This is because we hashify block level elements, and then we hashify comments, but we don't continue de-hashing until there are no more hashes.

Fixed: #31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment