fix(editor): unify text and blank line heights

Apply configured line height to the editor scroller and remove independent paragraph spacing. Update settings, typography preview, and regression coverage.
This commit is contained in:
eezd committed 2026-10-25 16:03:08 +08:00
1 parent 11f5e4fcf4
commit 59603afc94
8 files changed
+22 -14

No files matched your search

-3
View File
@@ -125,9 +125,6 @@ function buildDecorations(view: EditorView): DecorationSet {
return
}
switch (name) {
case 'Paragraph':
if (!node.parent || !['ListItem', 'Blockquote'].includes(node.parent.name)) out.push(lineDeco('cm-rm-paragraph-end').range(doc.lineAt(node.to).from))
return
case 'HeaderMark': {
if (isActive(node.from)) return
const parent = node.parent!