c425513ef5
Co-authored-by: Renovate Bot <bot@renovateapp.com> |
||
---|---|---|
.circleci | ||
.gitignore | ||
.prettierignore | ||
.prettierrc | ||
LICENSE.txt | ||
README.md | ||
index.js | ||
index.test.js | ||
package.json | ||
renovate.json | ||
yarn.lock |
README.md
markdown-it-heading-wrapper
A plugin very much inspired by and based on markdown-it-header-sections,
albeit in this case it's designed to allow for arbitrary markup wrappers
rather than just a single section
.
The idea behind this is to allow a document author to focus on pure documentation and to have the renderer add boilerplate markup to affect a specific layout.
Usage
markdown = md({
html: true,
}).use(require('markdown-it-heading-wrapper'), {
h1: {
before: '<section>',
after: '</section>',
},
});