bisheng-plugin-toc
Generate a Table of Contents (TOC) for Markdown files in bisheng
.
Usage
Install:
npm i --save bisheng-plugin-toc
Add 'bisheng-plugin-toc to bisehng.config.js
's plugins.
moduleexports = plugins: 'bisheng-plugin-toc?maxDepth=2';
In template:
<div> utils </div>
API
maxDepth: Number
default: 6
keepElem: Boolean
default: false
Whether to keep elements in heading text.
License
MIT