0.0.1 • Published 6 years ago

gatsby-remark-generic-extensions v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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::',
                  },
                },
              }
            },
          },
        },
      ],
    },
  },
];