diff --git a/composables/content-render.ts b/composables/content-render.ts index 13d54e82..44d654dc 100644 --- a/composables/content-render.ts +++ b/composables/content-render.ts @@ -66,6 +66,9 @@ function nodeToVNode(node: Node): VNode | string | null { function treeToVNode( input: Node, ): VNode | string | null { + if (!input) + return null + if (input.type === TEXT_NODE) return decode(input.value)