Table of Contents plugin for rehype
A rehype plugin that adds a table of contents (TOC) to the page



Example
import toc from "rehype-toc";
Installation
You can install rehype-toc
via npm.
npm install rehype-toc
Usage
TODO: Document the library's API and CLI usage
Contributing
Contributions, enhancements, and bug-fixes are welcome! File an issue on GitHub and submit a pull request.
Building
To build the project locally on your computer:
-
Clone this repo
git clone https://github.com/JS-DevTools/rehype-toc.git
-
Install dependencies
npm install
-
Build the code
npm run build
-
Run the tests
npm test
License
rehype-toc is 100% free and open-source, under the MIT license. Use it however you want.
Big Thanks To
Thanks to these awesome companies for their support of Open Source developers ❤
