From 4c16dcf34f54fcea3fc7caecb345a76b3fa59cb3 Mon Sep 17 00:00:00 2001 From: dribble-njr Date: Thu, 21 Nov 2024 13:10:58 +0800 Subject: [PATCH] fix: code block render abnormal --- src/stores/index.ts | 28 ++++++++++++++++------------ src/utils/renderer.ts | 4 ++-- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/src/stores/index.ts b/src/stores/index.ts index e91ff65..7a0921e 100644 --- a/src/stores/index.ts +++ b/src/stores/index.ts @@ -158,23 +158,27 @@ export const useStore = defineStore(`store`, () => { outputTemp += ` ` } + outputTemp += ` + + ` + output.value = outputTemp } diff --git a/src/utils/renderer.ts b/src/utils/renderer.ts index ca43515..3b9df97 100644 --- a/src/utils/renderer.ts +++ b/src/utils/renderer.ts @@ -89,9 +89,9 @@ function transform(legend: string, text: string | null, title: string | null): s const macCodeSvg = ` - + - + `.trim()