Skip to content

Produces invalid HTML on nested HTML divs #139

Description

@sol

Steps to reproduce

Parse/render the following input:

<div>
<div>
foobar
</div>
</div>

Expected result:

<div>
    <div>fobar</div>
</div>

Actual result:

<div>
    <div>fobar</div>
    <p>
</div>
</p>

Bablemark says that Markdown.pl 1.0.1 has the same bug. So you could probably argue that this is the intended behavior. But personally I think it's a bug. I think there is no use case for producing invalid HTML.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions