fix: add TableKit to preserve GFM tables on updatePage #6
Reference in New Issue
Block a user
Delete Branch "andersou/feat--add-tablekit-for-tiptap"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
GitHub Flavored Markdown (GFM) tables were corrupted when using update_page. The Markdown → HTML (via marked) → ProseMirror JSON (via generateJSON) flow did not recognize
<table>, <tr>, <th>,and<td>elements because the Tiptap extensions did not include table support.Solution
Added dependency @tiptap/extension-table
Included TableKit in tiptapExtensions so generateJSON correctly converts HTML tables to ProseMirror nodes
Changes
package.json: added dependency @tiptap/extension-table
src/lib/tiptap-extensions.ts: imported and registered TableKit
Testing
GFM tables are now preserved correctly in create + update flows.
Docmost tested version:
0.70.1Pull request closed