DEV Community

Discussion on: MDX Images

Collapse
 
ankursheel profile image
Ankur Sheel

In your gatsby-config.js try adding this to the mdx options

 gatsbyRemarkPlugins: [
        {
            resolve: 'gatsby-remark-images',
            options: {
                maxWidth: 590,
                linkImagesToOriginal: false,
                withWebp: true,
            },
        },
    ],