danielmahon/gatsby-remark-relative-images

GIF image

eur2 opened this issue · 4 comments

eur2 commented

Hello, I'm using the plugin gatsby-remark-relative-images. Everything is working well. All the image (jpg) are well converted to relative path. Except when I have a GIF image instead of JPG into markdown content. Then the relative path doesn't work. Has anyone encountered this issue?

Hi, in another similar issue you can see an answer from Kyle Mathews. I hope you'll find your answer there 😊

gatsbyjs/gatsby#7317 (comment)

eur2 commented

Thanks for the link!
I tried it but that didn't work. I have this weird double relative path:
<img src="../../static/assets/a.gif" alt="" title="">

Would it be possible to add an exception to don't convert to relative path GIF files from a markdown?

Having the same problem. It should be possible to specify file extensions to be handled by the plugin.

eur2 commented

@smashercosmo To make it working in gatsby, I'm using the publicUrl and a classic tag.