Skip to content

Commit

Permalink
docs: fix Mathjax startup (#64)
Browse files Browse the repository at this point in the history
### Summary of Changes

Update the MathJax config script, so math blocks get rendered properly
already the first time a page is visited.
  • Loading branch information
lars-reimann authored Apr 1, 2024
1 parent 404f6e8 commit 2e36d59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/javascript/mathjax.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ window.MathJax = {
};

document$.subscribe(() => {
MathJax.startup.output.clearCache();
MathJax.typesetClear();
MathJax.texReset();
MathJax.typesetPromise();
MathJax.typesetPromise();
});

0 comments on commit 2e36d59

Please sign in to comment.