diff options
Diffstat (limited to 'static/lib/contrib/mathtex-script-type.mjs')
-rw-r--r-- | static/lib/contrib/mathtex-script-type.mjs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/static/lib/contrib/mathtex-script-type.mjs b/static/lib/contrib/mathtex-script-type.mjs index 7cfb90e..1083b92 100644 --- a/static/lib/contrib/mathtex-script-type.mjs +++ b/static/lib/contrib/mathtex-script-type.mjs @@ -1,14 +1,14 @@ import katex from '../katex.mjs'; -let scripts = document.body.getElementsByTagName("script"); +var scripts = document.body.getElementsByTagName("script"); scripts = Array.prototype.slice.call(scripts); scripts.forEach(function (script) { if (!script.type || !script.type.match(/math\/tex/i)) { return -1; } - const display = script.type.match(/mode\s*=\s*display(;|\s|\n|$)/) != null; - const katexElement = document.createElement(display ? "div" : "span"); + var display = script.type.match(/mode\s*=\s*display(;|\s|\n|$)/) != null; + var katexElement = document.createElement(display ? "div" : "span"); katexElement.setAttribute("class", display ? "equation" : "inline-equation"); try { |