Alir3z4 / html2text

Convert HTML to Markdown-formatted text.
alir3z4.github.io/html2text/
GNU General Public License v3.0
1.74k stars 266 forks source link

Space missing before links inside <b> tag #403

Open nog642 opened 9 months ago

nog642 commented 9 months ago

Steps to reproduce:

>>> import html2text
>>> html2text.html2text('<b>This is <a href="https://example.com/">a link</a> right here</b>')
'**This is[a link](https://example.com/) right here**\n\n'

Notice the space between the word "is" and the link is missing in the output, but is present in the input.

Tested and this issue is present on master. My python version is 3.8.10 on linux.