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`
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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