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

crash with image

Open bluebill1049 opened this issue 2 years ago • 4 comments

Thanks for this amazing package! found a quite serious bug, which even crashes on the website.

screenshoot with crash:

image

Steps to reproduce

  • go to the website: https://probablyup.com/markdown-to-jsx/
  • ![Drag Racing](https://static.wikia.nocookie.net/monster/images/6/6e/DragonRed.jpg/revision/latest?cb=20160809235604)
  • try to remove [ ] and replace with ( ) and apply the same to ( ) to [] repeat few times

bluebill1049 avatar Mar 27 '22 11:03 bluebill1049

I have the same problem...

WindForce225 avatar Aug 18 '22 06:08 WindForce225

The problem is the file extension. This way works

![Drag Racing](https://static.wikia.nocookie.net/monster/images/6/6e/DragonRed.jpg)

marceloabk avatar Jan 15 '23 03:01 marceloabk

Funky URL, I’ve never seen one like that. The regex probably needs some light tweaking.

quantizor avatar Jan 31 '23 04:01 quantizor

Weirdly I can't reproduce the crash, the image just doesn't load for some reason. It's like the img tag itself doesn't like that URL?

quantizor avatar Jan 31 '23 17:01 quantizor