bisheng-plugin-toc
Generate a Table of Contents (TOC) for Markdown files.
Last updated 9 years ago by benjycui .
MIT · Repository · Bugs · Original npm
$ cnpm install bisheng-plugin-toc 
SYNC missed versions from official npm registry.

bisheng-plugin-toc

npm package NPM downloads Dependency Status

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.

module.exports = {
  plugins: ['bisheng-plugin-toc?maxDepth=2'],
};

In template:

<div>
  { utils.toReactComponent(pageData.toc) }
</div>

API

maxDepth: Number

default: 6

keepElem: Boolean

default: false

Whether to keep elements in heading text.

License

MIT

Current Tags

  • 0.4.4                                ...           latest (8 years ago)

2 Versions

  • 0.4.0                                ...           9 years ago
  • 0.4.4                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org