html-to-markdown icon indicating copy to clipboard operation
html-to-markdown copied to clipboard

Escape setext heading underlines

Open olli7 opened this issue 3 years ago • 0 comments

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

olli7 avatar Aug 24 '22 13:08 olli7