inline images MDX Gatsby

731 Views Asked by At

I'm trying to implement inline images with mdx files.

But I can't make it happen, no image is loaded.

After a bit of reading some solutions here, they suggest to add gatsby-remark-images also in the plugins array in options.plugins as in

`gatsby-transformer-sharp`,
    `gatsby-plugin-sharp`,
    `gatsby-remark-images`,
    {
      resolve: `gatsby-plugin-mdx`,
      options: {
        gatsbyRemarkPlugins: [
          {
            resolve: `gatsby-remark-images`,
          },
        ],
        plugins: [`gatsby-remark-images`],
      },
    },

in my mdx file ![test image]('./myFirstPost/images/colorcloud.jpg')

It didn't work for me though. Anybody can help me with some guidance ?

Cheers

1

There are 1 best solutions below

0
On

Yes turned out after spending half a morning on the matter that there's no needs of quotes in the md link to the img