gatsby-remark-containers
v1.0.0
Published
Gatsby.js Remark plugin wrapper for remark-containers. Provides parsing for ::: delimited containers to wrap markdown blocks in arbitrary html.
Downloads
12
Maintainers
Readme
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