A collection of utilities for working with HTML DOM emitted by Parsoid
npm install parsoid-dom-utilsA collection of utilities for working with HTML DOM emitted by Parsoid
Wraps logical sections defined by headings into <section> tags. Different
heading levels produce nested sections. In the final document, the children of
the body element are a sequence of sections.
``javascript
const domino = require('domino');
const domUtils = require('parsoid-dom-utils');
const testHTML = '
Paragraph
'More content
'More paragraph content
';//
Paragraph
More content
More paragraph content