From 8e4cb9c7b1ede69cdce089042c7f5b54c136d350 Mon Sep 17 00:00:00 2001 From: Konstantinos Kaloutas Date: Fri, 21 Jul 2023 15:27:43 +0300 Subject: [PATCH] fix mhchem --- .projectile | 2 +- gulpfile.js | 2 +- src/main/frontend/extensions/latex.cljs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.projectile b/.projectile index 08348ad489..3be21e8faf 100644 --- a/.projectile +++ b/.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 diff --git a/gulpfile.js b/gulpfile.js index 872d72671f..11be0ede2d 100644 --- a/gulpfile.js +++ b/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', diff --git a/src/main/frontend/extensions/latex.cljs b/src/main/frontend/extensions/latex.cljs index d76536e2b1..7e98007b12 100644 --- a/src/main/frontend/extensions/latex.cljs +++ b/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)))]