Skip to content

Commit

Permalink
Load bussproofs and mhchem
Browse files Browse the repository at this point in the history
  • Loading branch information
xldenis committed Dec 18, 2020
1 parent 82e2002 commit a232b9c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export default class JaxPlugin extends Plugin {
//
Object.defineProperty(window, 'MathJax', {
set(o) {
o.loader = { load: ['[tex]/mhchem', '[tex]/bussproofs'] };
o.tex.packages = { '[+]': ['mhchem', 'bussproofs']};

o.startup.ready = () => {
MathJax.startup.defaultReady();

Expand Down

0 comments on commit a232b9c

Please sign in to comment.