Vizel API / core/src / createVizelTableOfContentsExtension
Function: createVizelTableOfContentsExtension()
ts
function createVizelTableOfContentsExtension(options?): Node<any, any>;Defined in: packages/core/src/extensions/table-of-contents.ts:151
Create the Vizel Table of Contents extension.
Parameters
| Parameter | Type | Description |
|---|---|---|
options | VizelTableOfContentsOptions | TOC configuration options |
Returns
Node<any, any>
Configured Tiptap Node extension
Example
ts
const toc = createVizelTableOfContentsExtension({ maxDepth: 3 });