Skip to content

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

ParameterTypeDescription
optionsVizelTableOfContentsOptionsTOC configuration options

Returns

Node&lt;any, any&gt;

Configured Tiptap Node extension

Example

ts
const toc = createVizelTableOfContentsExtension({ maxDepth: 3 });

Released under the MIT License.