Make eslint happy.
This commit is contained in:
parent
00dd5f1276
commit
669f756b34
|
@ -8,16 +8,19 @@ function initMathJax() {
|
||||||
if (initializedMathJax) { return; }
|
if (initializedMathJax) { return; }
|
||||||
|
|
||||||
var extensions = ["toMathML.js", "Safe.js"];
|
var extensions = ["toMathML.js", "Safe.js"];
|
||||||
if(enable_accessibility) {
|
|
||||||
extensions.push("[a11y]/accessibility-menu.js")
|
if (enable_accessibility) {
|
||||||
|
extensions.push("[a11y]/accessibility-menu.js");
|
||||||
}
|
}
|
||||||
|
|
||||||
var settings = {
|
var settings = {
|
||||||
jax: ['input/TeX', 'input/AsciiMath', 'input/MathML', 'output/CommonHTML'],
|
jax: ['input/TeX', 'input/AsciiMath', 'input/MathML', 'output/CommonHTML'],
|
||||||
TeX: {extensions: ["AMSmath.js", "AMSsymbols.js", "autoload-all.js"]},
|
TeX: {extensions: ["AMSmath.js", "AMSsymbols.js", "autoload-all.js"]},
|
||||||
extensions: extensions,
|
extensions: extensions,
|
||||||
showProcessingMessages: false,
|
showProcessingMessages: false,
|
||||||
root: '/plugins/discourse-math/mathjax'
|
root: '/plugins/discourse-math/mathjax'
|
||||||
}
|
};
|
||||||
|
|
||||||
if(zoom_on_hover) {
|
if(zoom_on_hover) {
|
||||||
settings.menuSettings = {zoom: "Hover"};
|
settings.menuSettings = {zoom: "Hover"};
|
||||||
settings.MathEvents = {hover: 750};
|
settings.MathEvents = {hover: 750};
|
||||||
|
|
Loading…
Reference in New Issue