@docxkit/plugin-toc
v0.5.0
Published
Table of Contents field placeholder — docx-kit plugin
Readme
@docxkit/plugin-toc
Table of Contents plugin for docx-kit.
Usage
import { tocPlugin } from '@docxkit/plugin-toc'
builder.use(tocPlugin())
builder.plugin('toc', { title: 'Contents', maxLevel: 3 })Notes
- Inserts a DOCX table-of-contents field
maxLevelcontrols the heading range included in the TOC- Word may require a field update after opening the generated file
