Skip to content

Commit

Permalink
fix: mock v2 api of MathJax
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Jan 28, 2020
1 parent 3b06c0b commit 599eeb5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions js/src/mathjax.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,16 @@ export function renderMathJax() {
.typeset()
.updateDocument()
.reset();
window.MathJax = {
Hub: {
Queue: (arg) => {
html.findMath()
.compile()
.getMetrics()
.typeset()
.updateDocument()
.reset()
}
}
}
};

0 comments on commit 599eeb5

Please sign in to comment.