From a4661689d9fed9997a06a5d320cc70a126d509c3 Mon Sep 17 00:00:00 2001 From: umaranis Date: Sat, 31 Aug 2024 13:40:37 +1000 Subject: [PATCH] minor: TreeView - printing for mark node --- .../src/lib/core/plugins/TreeView/TreeView.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/svelte-lexical/src/lib/core/plugins/TreeView/TreeView.svelte b/packages/svelte-lexical/src/lib/core/plugins/TreeView/TreeView.svelte index 37e0c69..079a73d 100644 --- a/packages/svelte-lexical/src/lib/core/plugins/TreeView/TreeView.svelte +++ b/packages/svelte-lexical/src/lib/core/plugins/TreeView/TreeView.svelte @@ -329,6 +329,8 @@ .filter(Boolean) .join(' ') .trim(); + } else if (isMarkNode(node)) { + return `ids: [ ${node.getIDs().join(', ')} ]`; } else if (isParagraphNode(node)) { const formatText = printTextFormatProperties(node); return formatText !== '' ? `{ ${formatText} }` : '';