aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-02-14 14:27:22 -0800
committerJohn MacFarlane <[email protected]>2023-02-14 14:27:22 -0800
commit4bcce62c904e10eb4352d4d7d645a6c49e773ac5 (patch)
tree2de9e2801294d522c3c23851c9a7fd3830d8f491
parent431979c2e017bc826a20dc2267d0fa8794803431 (diff)
Include needed polyfill when MathJaX is used.
Closes #8625.
-rw-r--r--data/templates/default.html43
-rw-r--r--data/templates/default.html53
2 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/default.html4 b/data/templates/default.html4
index daef6adb2..401dd88e1 100644
--- a/data/templates/default.html4
+++ b/data/templates/default.html4
@@ -27,6 +27,9 @@ $for(header-includes)$
$header-includes$
$endfor$
$if(math)$
+$if(mathjax)$
+ <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
+$endif$
$math$
$endif$
</head>
diff --git a/data/templates/default.html5 b/data/templates/default.html5
index dda7e8cb0..0c5fc2aa0 100644
--- a/data/templates/default.html5
+++ b/data/templates/default.html5
@@ -27,6 +27,9 @@ $for(header-includes)$
$header-includes$
$endfor$
$if(math)$
+$if(mathjax)$
+ <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
+$endif$
$math$
$endif$
<!--[if lt IE 9]>