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.
markdown = md({
html: true,
}).use(require('markdown-it-heading-wrapper'), {
h1: {
before: '<section>',
after: '</section>',
},
});