Explorar o código

add mhchem plugin

ruffnex %!s(int64=4) %!d(string=hai) anos
pai
achega
f98a1f42cd
Modificáronse 3 ficheiros con 6 adicións e 2 borrados
  1. 1 0
      .projectile
  2. 0 0
      resources/js/mhchem.min.js
  3. 5 2
      src/main/frontend/extensions/latex.cljs

+ 1 - 0
.projectile

@@ -9,6 +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/mldoc.min.js
 -/resources/static/js/reveal.min.js
 -/resources/static/js/sci.min.js

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
resources/js/mhchem.min.js


+ 5 - 2
src/main/frontend/extensions/latex.cljs

@@ -34,8 +34,11 @@
       (loader/load
        (config/asset-uri "/static/js/katex.min.js")
        (fn []
-         (reset! *loading? false)
-         (render! state)))))
+         (loader/load
+          (config/asset-uri "/static/js/mhchem.min.js")
+          (fn []
+            (reset! *loading? false)
+            (render! state)))))))
   state)
 
 (rum/defc latex < rum/reactive

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio