0.1.5 • Published 7 years ago
markdown-toc-x v0.1.5
markdown-toc-x
Installation
npm i -S markdown-toc-x
Minimal Usage
const mdToc = require('markdown-toc-x');
console.log(mdToc('# This is BIG title'));
More Details
This library uses chjj/marked as its lexer.
API
mdToc(text, options)
options
- options that marked supports
options.url
the function to generate links' url
License
MIT