From 7d28f6ddbc785d9750e1d071f91451c43e5b5f55 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 25 Nov 2022 21:09:03 +0000 Subject: [PATCH] fix: handle html within markdown --- composables/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composables/content.ts b/composables/content.ts index 113ed3ef..244dff74 100644 --- a/composables/content.ts +++ b/composables/content.ts @@ -47,7 +47,7 @@ function handleNode(el: Element) { return handleBlocks(el) || handleMention(el) || el } -const md = new MarkdownIt() +const md = new MarkdownIt({ html: true }) md.renderer.rules.fence = (tokens, idx) => { const token = tokens[idx] return `\n`