Give the unmarked bare text check and the text-holding-content refusal one owner each

This commit is contained in:
2026-10-03 16:22:19 +02:00
parent fd3452b124
commit 00c89dd63b
4 changed files with 16 additions and 6 deletions
+4
View File
@@ -69,6 +69,10 @@ export function isBareText(node: AdfNode): boolean {
return node.type === 'text' && node.attrs === undefined && node.content === undefined && node.marks?.length !== 0
}
export function isUnmarkedBareText(node: AdfNode): boolean {
return isBareText(node) && node.marks === undefined
}
export function identicalMark(left: AdfMark, right: AdfMark): boolean {
return marksKey([left]) === marksKey([right])
}