gatsby-remark-containers

1.0.0 • Public • Published

gatsby-remark-containers

Gatsby.js Remark plugin wrapper for remark-containers.

Provides parsing for ::: delimited containers to wrap markdown blocks in arbitrary html. This snippet:

::: aside
Header One
 
With container contents.
:::

Results in:

<aside>
  <h1>Header One</h1>
  <p>With container contents.</p>
</aside>

Install

npm install --save gatsby-remark-containers

Usage

In your gatsby-config.js:

plugins: [
  {
    resolve: 'gatsby-transformer-remark',
    options: {
      plugins: [
        'gatsby-remark-containers'
      ],
    },
  },
];

Test + Cover

npm test

License

MIT

Package Sidebar

Install

npm i gatsby-remark-containers

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.15 kB

Total Files

4

Last publish

Collaborators

  • brev