0.0.0 • Published 6 years ago

markdown-it-headings v0.0.0

Weekly downloads
4
License
-
Repository
-
Last release
6 years ago

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