Explorar el Código

handle mhchem

Konstantinos Kaloutas hace 2 años
padre
commit
7d6aae0c08
Se han modificado 4 ficheros con 3 adiciones y 2 borrados
  1. 1 1
      .projectile
  2. 1 0
      gulpfile.js
  3. 0 0
      resources/js/mhchem.min.js
  4. 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.min.js
+-/resources/static/js/mhchem.js
 -/resources/static/js/mldoc.min.js
 -/resources/static/js/reveal.js
 -/resources/static/js/sci.min.js

+ 1 - 0
gulpfile.js

@@ -55,6 +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/html2canvas/dist/html2canvas.min.js',
         'node_modules/interactjs/dist/interact.min.js',
         'node_modules/photoswipe/dist/umd/*.js',

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
resources/js/mhchem.min.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.min.js")
+          (config/asset-uri "/static/js/mhchem.js")
           (fn []
             (p/finally
               (p/all (when-let [enhancers (and config/lsp-enabled? (seq (hook-extensions-enhancer-by-type :katex)))]

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio