fix: add TableKit to preserve GFM tables on updatePage #6

Closed
andersou wants to merge 1 commits from andersou/feat--add-tablekit-for-tiptap into main
andersou commented 2026-03-13 14:29:48 -06:00 (Migrated from github.com)

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.1

### 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.1`
aleleba closed this pull request 2026-05-30 20:33:09 -06:00

Pull request closed

Sign in to join this conversation.