feat(ui): add typography preferences and contextual formatting

This commit is contained in:
eezd committed 2026-10-22 15:01:39 +08:00
1 parent 2a35a392b7
commit 06be0038cf
10 files changed
+145 -26

No files matched your search

+3
View File
@@ -124,6 +124,9 @@ 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!