erusev / parsedown

Better Markdown Parser in PHP

Home Page:https://parsedown.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image url containing parenthesis does not render correctly

xian310 opened this issue · comments

Hello,

I encounter a problem when I want to display an image that contain parenthesis in its url, like for example this one:

https://img.discogs.com/xj70o40FRg3uGEEwjIcJOYTC0k0=/fit-in/600x592/filters:strip_icc():format(jpeg):mode_rgb():quality(90)/discogs-images/R-19242826-1624712011-5555.jpeg.jpg

When I try the following code on https://parsedown.org/demo, it works fine with the Markdown PHP 1.3 renderer, but not with the Parsedown one:

![my-image](https://img.discogs.com/xj70o40FRg3uGEEwjIcJOYTC0k0=/fit-in/600x592/filters:strip_icc():format(jpeg):mode_rgb():quality(90)/discogs-images/R-19242826-1624712011-5555.jpeg.jpg)

I am aware of the following alternative syntax that works well with both renderers:

![my-image][1]

[1]: https://img.discogs.com/xj70o40FRg3uGEEwjIcJOYTC0k0=/fit-in/600x592/filters:strip_icc():format(jpeg):mode_rgb():quality(90)/discogs-images/R-19242826-1624712011-5555.jpeg.jpg

but I'd prefer to continue using the classic short syntax...

Thanks a lot!