Files
multica/apps/web
Naiyuan Qing ad023c2bb3 fix(editor): trim trailing whitespace from getMarkdown() output
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>
2026-04-03 11:36:49 +08:00
..