@arcblock/hast-wrap-heading

wrap flat hast from mdast with section divs for different heading tags

Usage no npm install needed!

<script type="module">
  import arcblockHastWrapHeading from 'https://cdn.skypack.dev/@arcblock/hast-wrap-heading';
</script>

README

hast-wrap-headings

Wrap flat html tag list (from markdown ast) with section divs for different levels

Usage

const wrapHeadings = require('@arcblock/hast-wrap-headings');

// TODO: DEMONSTRATE API