markdown-to-jsx
markdown-to-jsx copied to clipboard
crash with image
Thanks for this amazing package! found a quite serious bug, which even crashes on the website.
screenshoot with crash:
![image](https://user-images.githubusercontent.com/10513364/160280070-1c3280c4-a059-4498-88ef-d7034a606510.png)
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
I have the same problem...
The problem is the file extension. This way works
![Drag Racing](https://static.wikia.nocookie.net/monster/images/6/6e/DragonRed.jpg)
Funky URL, I’ve never seen one like that. The regex probably needs some light tweaking.
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?