markdown-it-headings

0.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i markdown-it-headings

Weekly Downloads

0

Version

0.0.0

License

none

Unpacked Size

2.84 kB

Total Files

3

Last publish

Collaborators

  • rem