Skip to content

Commit

Permalink
fix: unable to switch code themes(#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
imzbf committed Oct 17, 2024
1 parent bb33bbe commit ca5df2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const useHighlight = (props: ContentPreviewProps) => {
() => highlight.value.css,
() => {
// 强制不高亮,则什么都不做
if (props.noHighlight || hljsRef.value) {
if (props.noHighlight || configOption.editorExtensions.highlight!.instance) {
return;
}

Expand Down

0 comments on commit ca5df2c

Please sign in to comment.