Browse Source

add mhchem plugin

ruffnex 4 years ago
parent
commit
f98a1f42cd
3 changed files with 6 additions and 2 deletions
  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/sentry.min.js
 -/resources/static/js/highlight.min.js
 -/resources/static/js/highlight.min.js
 -/resources/static/js/katex.min.js
 -/resources/static/js/katex.min.js
+-/resources/static/js/mhchem.min.js
 -/resources/static/js/mldoc.min.js
 -/resources/static/js/mldoc.min.js
 -/resources/static/js/reveal.min.js
 -/resources/static/js/reveal.min.js
 -/resources/static/js/sci.min.js
 -/resources/static/js/sci.min.js

File diff suppressed because it is too large
+ 0 - 0
resources/js/mhchem.min.js


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

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

Some files were not shown because too many files changed in this diff