Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

gatsby-remark-generic-extensions

Gatsby remark plugin to use commonmark generic directive extension in markdown

Install

npm install --save gatsby-remark-generic-extensions

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-transformer-remark`,
    options: {
      plugins: [
        {
          resolve: 'gatsby-remark-generic-extensions',
          options: {
            elements: {
              Icon: {
                propsDefaultValues: {
                  size: 14,
                },
                html: {
                  properties: {
                    name: '::content::',
                    color: '::argument::',
                  },
                },
              }
            },
          },
        },
      ],
    },
  },
];
© 2023 Gatsby, Inc.