diff options
| author | Bobby <[email protected]> | 2023-06-06 17:09:35 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-06-06 17:09:35 -0400 |
| commit | 5781f104d7ea2a709c1ca3266c407e15224f18b7 (patch) | |
| tree | 9a69a0f77e515ed24262ffe45b5ca72d55cb1088 /static | |
| parent | 55194bc9de5f15c07bd4ff8d7ece9da5c8ed938d (diff) | |
| download | thatcomputerscientist-5781f104d7ea2a709c1ca3266c407e15224f18b7.tar.xz thatcomputerscientist-5781f104d7ea2a709c1ca3266c407e15224f18b7.zip | |
Move Mathjax Config to Back to Partial
Diffstat (limited to 'static')
| -rw-r--r-- | static/js/mjxConfig.js | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/static/js/mjxConfig.js b/static/js/mjxConfig.js deleted file mode 100644 index 1fad8599..00000000 --- a/static/js/mjxConfig.js +++ /dev/null @@ -1,53 +0,0 @@ -var BROWSER = MathJax.Hub.Browser; - -var canUseMML = - (BROWSER.isFirefox && BROWSER.versionAtLeast("1.5")) || - (BROWSER.isMSIE && BROWSER.hasMathPlayer) || - (BROWSER.isSafari && BROWSER.versionAtLeast("5.0")) || - (BROWSER.isOpera && - BROWSER.versionAtLeast("9.52") && - !BROWSER.versionAtLeast("14.0")); - -var CONFIG = MathJax.Hub.CombineConfig("default", { - prefer: { - MSIE: "HTML", - Firefox: "HTML", - Opera: "HTML", - Chrome: "CommonHTML", - Safari: "HTML", - other: "HTML", - }, -}); - -var jax = CONFIG.prefer[BROWSER] || CONFIG.prefer.other; -if (jax === "HTML") jax = "HTML-CSS"; -else if (jax === "MML") jax = "NativeMML"; -if (jax === "NativeMML" && !canUseMML) jax = CONFIG.prefer.other; - -MathJax.Hub.Config({ - jax: ["input/TeX", "output/" + jax], - extensions: ["tex2jax.js"], - TeX: { - extensions: [ - "AMSmath.js", - "AMSsymbols.js", - "noErrors.js", - "noUndefined.js", - ], - }, - "HTML-CSS": { availableFonts: ["TeX"] }, - tex2jax: { - inlineMath: [ - ["$", "$"], - ["\\(", "\\)"], - ], - displayMath: [ - ["$$", "$$"], - ["\\[", "\\]"], - ], - processEscapes: true, - }, - "fast-preview": { disabled: true }, - showProcessingMessages: false, - "HTML-CSS": { imageFont: null }, -}); |
