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

Inline HTML doesn't always render correctly #28

Open
desttinghim opened this issue Mar 23, 2017 · 0 comments
Open

Inline HTML doesn't always render correctly #28

desttinghim opened this issue Mar 23, 2017 · 0 comments

Comments

@desttinghim
Copy link

desttinghim commented Mar 23, 2017

I've run into some unexpected behavior while parsing markdown documents with inline HTML.

Take this markdown for example:

<div>

# Test
test test test

</div>

When parsed, this is what I would expect:

<div>
    <h1>Test</h1>
    <p>test test test</p>
</div>

But that is not what results. This is the output from running the markdown through Markdown.markdownToHTML:

<div>
    <h1>Test</h1>
    <p>test test test</p>
<p></div></p>

As you can see, there are p tags surrounding the closing div. Now, this will render just fine in browsers, but it is not correct HTML. If there are no problems with it, I would suggest making the parse match the expected result I show. I might be able to help, but I would need some guidance on what to change.

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

1 participant