import type { AnyExtension } from '@tiptap/core'; import { MarkdownClipboard } from './markdown-clipboard'; import { Bold, CodeMark, Italic, LinkMark, Strikethrough } from './marks'; import { Image } from './nodes/image'; import { BulletList, ListItem, OrderedList, TaskList } from './nodes/lists'; import { Table, TableCell, TableHeader, TableRow } from './nodes/table'; import { TaskItem } from './nodes/task-item'; import { Blockquote, CodeBlock, Doc, HardBreak, Heading, HorizontalRule, Paragraph, Text, } from './nodes/text-basics'; /** * The full node/mark set for `editorSchema` (packages/shared, issue #24), * minus `Collaboration` — that extension needs a per-page `Y.Doc` and is * added by the caller (`PageEditorPage`, issue #25). */ export const documentExtensions: AnyExtension[] = [ Doc, Text, Paragraph, Heading, Blockquote, CodeBlock, HorizontalRule, BulletList, OrderedList, ListItem, TaskList, TaskItem, HardBreak, Image, Table, TableRow, TableCell, TableHeader, Bold, Italic, CodeMark, Strikethrough, LinkMark, MarkdownClipboard, ];