0.1.0 • Published 2 years ago
@akopyl/docusaurus-toc-patcher v0.1.0
@akopyl/docusaurus-toc-patcher
A remark plugin, that replaces the built-in Docusaurus toc plugin. It generates the table of contents properly, when importing markdown files with headings.
Installation
yarn add @akopyl/docusaurus-toc-patcher
Usage
// ...
docs: {
// ...
remarkPlugins: [
[
require('@akopyl/docusaurus-toc-patcher'),
{}
],
]
}
Options
name
How the exported toc variable will be named. Defaults to toc
.