mixmark-io / turndown

🛏 An HTML to Markdown converter written in JavaScript
https://mixmark-io.github.io/turndown
MIT License
8.52k stars 864 forks source link

Strong delimiter rendered on a newline in certain situations #436

Open maxcountryman opened 1 year ago

maxcountryman commented 1 year ago

I'm running into a situation where the strong delimiter, e.g. **, is appearing on a newline. This happens when the converted HTML looks something like this:

<strong><br>Strong Text<br></strong>

The visual intention is for Strong Text to be bolded and indeed this works in HTML. However, after converting, the Markdown does not respect this intention.