You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Random <p> tags inserted when using HTML in markdown
To Reproduce
My markdown also contains html, namely for example
<a href="https://www.goodreads.com/book/show/54774415-glimpses-from-beyond-the-ego">
<img src="../images/post-bcpov6zfbsbr-0.jpg" width="300px" height="auto" alt="Notes from a Dreamer on Dreaming"/>
</a>
When I convert this with markdown2.markdown, I get the following
<p><a href="https://www.goodreads.com/book/show/54774415-glimpses-from-beyond-the-ego"></p>
<p><img src="../images/post-bcpov6zfbsbr-0.jpg" width="300px" height="auto" alt="Notes from a Dreamer on Dreaming"/></p>
<p></a></p>
Which is no longer valid HTML.
Expected behavior
I would expect that section to be ignored by the parser, since it's already HTML. It should just return the same thing.
Debug info
Version of library being used:
2.4.12
The text was updated successfully, but these errors were encountered:
Describe the bug
Random
<p>
tags inserted when using HTML in markdownTo Reproduce
My markdown also contains html, namely for example
When I convert this with
markdown2.markdown
, I get the followingWhich is no longer valid HTML.
Expected behavior
I would expect that section to be ignored by the parser, since it's already HTML. It should just return the same thing.
Debug info
Version of library being used:
2.4.12
The text was updated successfully, but these errors were encountered: