ended3월 29일· 1 sources
How ProseMirror's Mark Preservation Logic Breaks Markdown Editor Design
ProseMirror 마크다운 에디터에서 블록 병합 시 발생하는 텍스트 마크 누수 문제
Why it matters
This article uncovers a subtle interaction between ProseMirror's text mark preservation system and markdown editor assumptions. When joining text blocks, marks are correctly preserved by design, but markdown editors store visual properties like boldness in both node types and inline marks, causing unintended style bleeding. The author demonstrates a practical plugin-based solution that cleanly intercepts the join operation to strip inherited marks.
1
Sources
+0
24h
—
Growth
176d
Active
ProseMirrorMilkdownmarkdown editortext marksjoinTextblockBackward