@akopyl/docusaurus-toc-patcher
v0.1.0
Published
A replacement for the ToC remark plugin.
Readme
@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-patcherUsage
// ...
docs: {
// ...
remarkPlugins: [
[
require('@akopyl/docusaurus-toc-patcher'),
{}
],
]
}Options
name
How the exported toc variable will be named. Defaults to toc.
