markdown-it-headings
v0.0.0
Published
Add heading anchors and generate headings array.
Downloads
3
Readme
markdown-it-headings
Add heading anchors and generate headings array.
Usage
const MarkdownIt = require('markdown-it')
const headingsPlugin = require('markdown-it-headings')
const headings = []
const md = new MarkdownIt()
md.use(headingsPlugins(headings), options)
md.render(text)
// console.log(headings)
Options
minDepth
Type: number
Default: 2
maxDepth
Type: number
Default: 3