瀏覽代碼

fix mhchem

Konstantinos Kaloutas 2 年之前
父節點
當前提交
8e4cb9c7b1
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      .projectile
  2. 1 1
      gulpfile.js
  3. 1 1
      src/main/frontend/extensions/latex.cljs

+ 1 - 1
.projectile

@@ -9,7 +9,7 @@
 -/resources/static/js/sentry.min.js
 -/resources/static/js/highlight.min.js
 -/resources/static/js/katex.min.js
--/resources/static/js/mhchem.js
+-/resources/static/js/mhchem.min.js
 -/resources/static/js/mldoc.min.js
 -/resources/static/js/reveal.js
 -/resources/static/js/sci.min.js

+ 1 - 1
gulpfile.js

@@ -55,7 +55,7 @@ const common = {
       ]).pipe(gulp.dest(path.join(outputPath, 'js', 'excalidraw-assets'))),
       () => gulp.src([
         'node_modules/katex/dist/katex.min.js',
-        'node_modules/katex/contrib/mhchem/mhchem.js',
+        'node_modules/katex/dist/contrib/mhchem.min.js',
         'node_modules/html2canvas/dist/html2canvas.min.js',
         'node_modules/interactjs/dist/interact.min.js',
         'node_modules/photoswipe/dist/umd/*.js',

+ 1 - 1
src/main/frontend/extensions/latex.cljs

@@ -39,7 +39,7 @@
        (config/asset-uri "/static/js/katex.min.js")
        (fn []
          (loader/load
-          (config/asset-uri "/static/js/mhchem.js")
+          (config/asset-uri "/static/js/mhchem.min.js")
           (fn []
             (p/finally
               (p/all (when-let [enhancers (and config/lsp-enabled? (seq (hook-extensions-enhancer-by-type :katex)))]