Commit Graph
6 Commits
Author SHA1 Message Date
aleleba 73ffcfec17 feat: add filterComment function for comment responses 2026-05-30 20:39:05 -06:00
aleleba 7ff32cc6e6 feat: add markdownToTiptapJson utility for comment creation 2026-05-30 20:39:01 -06:00
aleleba 77201154d0 fix: normalize search response for Docmost 0.25+ API change
Closes #1
Closes #8

Docmost changed the search API response format in v0.25.0:
- Before: response.data.data was a direct array
- After:  response.data.data is { items: [...], meta: {...} }

The old code assumed the array format and crashed with
"items.map is not a function" on Docmost 0.25+.

Fix normalizes both formats for backwards compatibility.
2026-05-30 20:35:26 -06:00
aleleba 9be42aa0b4 chore: add @tiptap/extension-table dependency for GFM table support 2026-05-30 20:32:51 -06:00
aleleba 23fa372774 fix: add TableKit to preserve GFM tables on updatePage
Closes #2

GFM tables were corrupted when using update_page because the
Markdown → HTML (marked) → ProseMirror JSON (generateJSON) flow did not
recognize <table>, <tr>, <th>, <td> elements. Adding TableKit from
@tiptap/extension-table registers the required schema so tables round-trip
correctly in both create and update flows.

Tested on Docmost 0.70.1. Fixes PR #6 from the original repo.
2026-05-30 20:32:44 -06:00
aleleba 67e4c13102 fix: configure Image extension as block-level to match Docmost's schema
Closes #4

When update_page contained images, they were silently dropped because
the Image extension was configured with inline: true, but Docmost's
editor uses inline: false, group: "block". The Yjs merge discarded
mismatched inline image nodes.

Fixes PR #5 from the original repo.
2026-05-30 20:31:21 -06:00