Skip to content

Escape setext heading underlines #226

Open
@olli7

Description

@olli7

Version(s) affected

5.1.0

Description

According to https://spec.commonmark.org/0.30/#setext-heading-underline a line containing any number of =s makes the line above it a heading 1.

How to reproduce

HTML:

<p>Foo<br>=<br>Bar</p>

Output:

Foo  
=  
Bar

Expected output:

Foo  
\=  
Bar

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions