From 2e36d59b1daee8a4017b6b1c2232092336068e70 Mon Sep 17 00:00:00 2001 From: Lars Reimann Date: Mon, 1 Apr 2024 19:43:56 +0200 Subject: [PATCH] docs: fix Mathjax startup (#64) ### Summary of Changes Update the MathJax config script, so math blocks get rendered properly already the first time a page is visited. --- docs/javascript/mathjax.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/javascript/mathjax.js b/docs/javascript/mathjax.js index 5da38f7..0c1ec8e 100644 --- a/docs/javascript/mathjax.js +++ b/docs/javascript/mathjax.js @@ -12,5 +12,9 @@ window.MathJax = { }; document$.subscribe(() => { + MathJax.startup.output.clearCache(); + MathJax.typesetClear(); + MathJax.texReset(); + MathJax.typesetPromise(); MathJax.typesetPromise(); });