turndown icon indicating copy to clipboard operation
turndown copied to clipboard

Image URLs are not properly escaped

Open pavelhoral opened this issue 7 months ago • 0 comments

I finally got around to verify this issue, however it was fixed for links but not for images.

this html:

<img src="https://google.com/file 1).jpg" />

produces this markdown:

![](https://google.com/file 1).jpg)

In this example I used an unbalanced bracket, as per earlier comments. I can confirm the fix for links handles both balanced and unbalanced brackets, which would be my preferred fix.

using 7.2.0

Originally posted by @shaipetel in https://github.com/mixmark-io/turndown/issues/459#issuecomment-2230951133

pavelhoral avatar Jul 16 '24 18:07 pavelhoral