thephpleague / html-to-markdown

Convert HTML to Markdown with PHP
MIT License
1.77k stars 204 forks source link

Empty tags break siblings' markdown #252

Open kito-inv opened 4 months ago

kito-inv commented 4 months ago

Version(s) affected

5.1.1

Description

When there is an empty HTML tag it breaks the parsing of the sibling if it's the same tag

How to reproduce

<strong> </strong> <strong>hello</strong> outputs hello**