md-sections
Get an array of sections (heading + nodes) from a markdown doc, using remark
.
Any nodes before the first heading are ignored.
Usage
var sections = mdSections(root)
Args:
root
: rootremark
node
Output: Array of objects in the format { heading: node, nodes: <Array>node }
Example
var fs = var remark = var mdSections = var root = remarkvar sections =
License
MIT