Skip to content
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

Fails to parse HTML containing empty lines #4

Open
reiner-dolp opened this issue May 11, 2019 · 1 comment
Open

Fails to parse HTML containing empty lines #4

reiner-dolp opened this issue May 11, 2019 · 1 comment

Comments

@reiner-dolp
Copy link

reiner-dolp commented May 11, 2019

The library fails to handle HTML containing empty lines. Consider the following markdown file:

<pre>
    <b>Green</b>

    <b>Banana</b>
</pre>

Expected behaviour: emitted HTML is identical to input HTML
Actual behaviour: Currently emitted as

<pre></pre>
<b>Green</b>
<b>Banana</b>

Looking at the library code, this seems hard to fix since HTML parsing is done after block parsing. Do you have a suggestion for a patch?

@pablohirafuji
Copy link
Owner

Thank you for the report. I will take a look this weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants