russross / blackfriday

Blackfriday: a markdown processor for Go
Other
5.42k stars 598 forks source link

Wrong HTML Tag Match #561

Closed adamyi closed 5 years ago

adamyi commented 5 years ago
<div></div>
**test**

renders to

<p><div></div>
<strong>test</strong></p>

but

<div></div>
**test**
<div></div>

renders to

<div></div>
**test**
<div></div>

I understand that markdown inside html block is by design not rendered. But in this case, the **test** in not in div block.

adamyi commented 5 years ago

Using blackfriday.LaxHTMLBlocks seems to solve this