markdown-to-jsx icon indicating copy to clipboard operation
markdown-to-jsx copied to clipboard

Bug : image Links ex) [![](http://example.com/link.png)](http://example.com)

Open 100space opened this issue 1 year ago • 1 comments

Bug : image Links ex)

I want to create a link using an image, but there is a bug in the render. For example:

[![youtubeImg](https://www.gstatic.com/youtube/img/promos/growth/ytp_lp2_logo_phone_landscape_300x44.png)](https://www.youtube.com/)

스크린샷 2023-12-12 오후 2 46 07

스크린샷 2023-12-12 오후 2 46 23

Using the above syntax, I want to make a link with an image. It renders correctly in 'vscode', but when using the library, it gets rendered as:

![youtubeImg](https://www.youtube.com/)

(The image does not appear)

I want it to be rendered as:

<p><a href="https://www.youtube.com"><img src="https://www.gstatic.com/youtube/img/promos/growth/ytp_lp2_logo_phone_landscape_300x44.png" alt="youtubeImg"></a></p>

But actually, it gets rendered as:

<p><a href="https://www.gstatic.com/youtube/img/promos/growth/ytp_lp2_logo_phone_landscape_300x44.png">![youtubeImg</a>](<a href="https://www.youtube.com">https://www.youtube.com</a>)</p>

The image tag is lost...

This issue also occurs in the example you have set up (https://markdown-to-jsx.quantizor.dev/)."

스크린샷 2023-12-12 오후 2 54 40

Please check and give me feedback👍

100space avatar Dec 12 '23 06:12 100space

#529

#524

100space avatar Dec 12 '23 06:12 100space

Yup I see it, will look into it

quantizor avatar Mar 13 '24 19:03 quantizor

Appears to have been fixed by #551, thanks @zegl!

quantizor avatar Mar 21 '24 03:03 quantizor