Generate a Table of Contents (TOC) for Markdown files.
npm install bisheng-plugin-toc



Generate a Table of Contents (TOC) for Markdown files in bisheng.
Install:
``bash`
npm i --save bisheng-plugin-toc
Add 'bisheng-plugin-toc to bisehng.config.js's plugins.
`js`
module.exports = {
plugins: ['bisheng-plugin-toc?maxDepth=2'],
};
In template:
`jsx``
{ utils.toReactComponent(pageData.toc) }
> default: 6
> default: false
Whether to keep elements in heading text.
MIT