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} }` : '';