@univerjs/docs-toc
v1.3.0
Published
Table of contents commands for Univer Docs.
Readme
@univerjs/docs-toc
@univerjs/docs-toc provides table-of-contents insertion, update, deletion, and FIELD-range lookup for Univer Docs.
Package Overview
| Package | UMD global | CSS | Locales | Facade entry |
| --- | --- | :---: | :---: | :---: |
| @univerjs/docs-toc | UniverDocsToc | No | No | No |
Installation
pnpm add @univerjs/docs-toc
# or
npm install @univerjs/docs-tocKeep all @univerjs/* packages on the same version.
Usage
import { UniverDocsTocPlugin } from '@univerjs/docs-toc';
univer.registerPlugin(UniverDocsTocPlugin);Use this package with @univerjs/docs-toc-ui when users need Ribbon, context-menu, dialog, and active-range feedback.
The updater currently evaluates outline-based TOC instructions (\\o). Other Word TOC switches are retained in FIELD metadata but are not all evaluated.
