Skip to content

Spec should not start an HTML block for void elements #435

@glebm

Description

@glebm

Void elements as described in the HTML spec should not start a CommonMark HTML block, because void elements cannot have any content.

The void elements are:

area base br col embed hr img input link menuitem meta param source track wbr

E.g. neither of these should start an HTML block, but currently do as they match HTML block Start condition 7:

<img src="x.jpg>
<img src="x.jpg" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions