Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
100space opened this issue Dec 12, 2023 · 3 comments
Closed
Assignees

Comments

@100space
Copy link

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
Copy link
Author

#529

#524

@quantizor quantizor self-assigned this Mar 13, 2024
@quantizor
Copy link
Owner

Yup I see it, will look into it

@quantizor
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants