Alir3z4 / html2text

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

The picture url with "-" is converted to "-\n" #337

Open myifeng opened 4 years ago

myifeng commented 4 years ago

print(html2text.html2text(''))

![](http://n.sinaimg.cn/tech/transform/59/w309h550/20180404/k2nb-

fysuuya3242244.png)

expect:


- Python version `3.7.1`
locphan57910 commented 3 years ago

I have the same issue with Python 3.9 any better solution?

I am currently doing

htmlText = htmlText.replace('-\n','-')