This is for testing purpuse heading
)
This structure is flexible and compatible with all Tiptap / ProseMirror node types — you can safely use it for rich text fields from Storyblok, Sanity, or a Tiptap editor.
Explanation:
TiptapDocis the root object (always{ type: 'doc', content: [...] }).TiptapNodecan represent any node type (e.g.heading,paragraph,bullet_list,list_item,text, etc.).markshandles inline styles like bold, italic, underline, etc.attrsholds node attributes (like heading level, alignment, etc.).
This structure is flexible and compatible with all Tiptap / ProseMirror node types — you can safely use it for rich text fields from Storyblok, Sanity, or a Tiptap editor.
Would you like me to show a stricter version that includes specific node types (e.g. HeadingNode, ParagraphNode, etc.) for better type safety in editors?