Browse Source

:bug: highlightRender 默认值

Liyuan Li 5 years ago
parent
commit
ac05583ab1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ts/markdown/highlightRender.ts

+ 1 - 1
src/ts/markdown/highlightRender.ts

@@ -19,7 +19,7 @@ export const highlightRender = (hljsOption?: IHljs, element: HTMLElement | Docum
     }
     addStyle(`${cdn}/dist/js/highlight.js/styles/${style}.css`, "vditorHljsStyle");
 
-    if (!hljsOption.enable) {
+    if (hljsOption.enable === false) {
         return;
     }