From d9d2a946a45afc7815aecf6a8d32a0a5ad17e5bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Sat, 26 Nov 2022 03:16:47 +0800 Subject: [PATCH] fix: convert code block --- composables/content.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composables/content.ts b/composables/content.ts index 5cbef120..b9152121 100644 --- a/composables/content.ts +++ b/composables/content.ts @@ -125,8 +125,8 @@ function treeToText(input: Node): string { pre = '\n' if (input.nodeName === 'code') { - pre = '`' - post = '`' + pre = '````\n' + post = '\n```' } if ('childNodes' in input)