table of contents node - WIP

This commit is contained in:
Philipinho
2025-10-15 12:20:08 +01:00
parent 042836cb6d
commit 2b6ac81c61
11 changed files with 212 additions and 4 deletions

View File

@ -33,6 +33,7 @@ import {
Embed,
Mention,
Subpages,
TableOfContentsNode,
} from '@docmost/editor-ext';
import { generateText, getSchema, JSONContent } from '@tiptap/core';
import { generateHTML, generateJSON } from '../common/helpers/prosemirror/html';
@ -80,6 +81,7 @@ export const tiptapExtensions = [
Embed,
Mention,
Subpages,
TableOfContentsNode,
] as any;
export function jsonToHtml(tiptapJson: any) {