mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 08:02:28 +00:00
chore(editor): remove unused escape helper
This commit is contained in:
@@ -325,16 +325,6 @@ function hasEscapedEntityMark(node: JSONContent): boolean {
|
||||
)
|
||||
}
|
||||
|
||||
function hasOnlyEscapedMarks(node: JSONContent): boolean {
|
||||
if (
|
||||
node.type === 'text' &&
|
||||
node.marks?.some((mark) => mark.type !== RICH_MARKDOWN_ESCAPED_CHARACTER_MARK)
|
||||
) {
|
||||
return false
|
||||
}
|
||||
return !(node.content ?? []).some((child) => !hasOnlyEscapedMarks(child))
|
||||
}
|
||||
|
||||
function blockHasEscapedCharacters(block: ProseMirrorNode): boolean {
|
||||
let found = false
|
||||
block.descendants((node) => {
|
||||
|
||||
Reference in New Issue
Block a user