Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.

Commit fc94ceb

Browse files
authored
docs: fix Mathjax startup (#249)
### Summary of Changes Update the MathJax config script, so math blocks get rendered properly already the first time a page is visited.
1 parent b79985f commit fc94ceb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/javascript/mathjax.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ window.MathJax = {
1111
},
1212
};
1313

14-
document$.subscribe(() => {
14+
ocument$.subscribe(() => {
15+
MathJax.startup.output.clearCache();
16+
MathJax.typesetClear();
17+
MathJax.texReset();
1518
MathJax.typesetPromise();
1619
});

0 commit comments

Comments
 (0)