From ca5df2c1be2c2c88ab374731b15e447d69305718 Mon Sep 17 00:00:00 2001 From: zbf Date: Thu, 17 Oct 2024 09:35:48 +0800 Subject: [PATCH] fix: unable to switch code themes(#702) --- packages/MdEditor/layouts/Content/composition/useHighlight.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/MdEditor/layouts/Content/composition/useHighlight.ts b/packages/MdEditor/layouts/Content/composition/useHighlight.ts index 32f4888f..6265fdeb 100644 --- a/packages/MdEditor/layouts/Content/composition/useHighlight.ts +++ b/packages/MdEditor/layouts/Content/composition/useHighlight.ts @@ -45,7 +45,7 @@ const useHighlight = (props: ContentPreviewProps) => { () => highlight.value.css, () => { // 强制不高亮,则什么都不做 - if (props.noHighlight || hljsRef.value) { + if (props.noHighlight || configOption.editorExtensions.highlight!.instance) { return; }