feat(ui): add typography preferences and contextual formatting
This commit is contained in:
1 parent
2a35a392b7
commit
06be0038cf
10 files changed
+145
-26
No files matched your search
@@ -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!
|
||||
|
||||
Reference in new issue
Block a user