Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add correct plugin name #2

Merged
merged 1 commit into from May 7, 2020
Merged

fix: add correct plugin name #2

merged 1 commit into from May 7, 2020

Conversation

rwieruch
Copy link
Contributor

It didn't work for me with the other plugin name.

Unfortunately, the plugin itself working for me. It shows the images in one column, but doesn't apply a grid on it. Not sure if the plugin configuration works as well, because I have used a className option but didn't see it in the DOM.

@rwieruch
Copy link
Contributor Author

That's my configuration when using gatsby-mdx:

{
      resolve: `gatsby-mdx`,
      options: {
        extensions: ['.mdx', '.md'],
        gatsbyRemarkPlugins: [
          {
            resolve: 'gatsby-remark-grid',
            options: {
              className: 'myCustomClassName',
              gridGap: '20px',
              margin: '20px auto',
            },
          },
          {
            resolve: 'gatsby-remark-images',
            pluginOptions: {
              maxWidth: 1024,
              withWebp: true,
              linkImagesToOriginal: false,
              showCaptions: true,
            },
          },
          {
            resolve: `gatsby-remark-prismjs`,
            pluginOptions: {
              classPrefix: 'language-',
              inlineCodeMarker: null,
              aliases: {},
            },
          },
        ],
      },
    },

@cedricdelpoux cedricdelpoux merged commit 9fd4c83 into cedricdelpoux:master May 7, 2020
@e0d e0d mentioned this pull request May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants