gatsby-remark-generic-extensions

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i gatsby-remark-generic-extensions

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

3.23 kB

Total Files

4

Last publish

Collaborators

  • arrkiin