mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-05 21:39:54 +02:00
ProseMirror always keeps an empty paragraph at the document end (schema requires "block+"), which getMarkdown() serializes as trailing "\n\n". Without trimming, each save→reload cycle adds an extra empty line. Centralize the trim in ContentEditor (both onUpdate callback and ref getMarkdown), removing redundant .replace() calls from comment-input, reply-input, and comment-card. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>