anki/qt/aqt/data/web/js/mathjax.js
2020-11-15 21:40:59 +01:00

29 lines
670 B
JavaScript

window.MathJax = {
tex: {
displayMath: [["\\[", "\\]"]],
processRefs: false,
processEnvironments: false,
packages: {
"[+]": ["noerrors", "mhchem"],
},
},
startup: {
typeset: false,
pageReady: () => {
console.log("page is ready");
return MathJax.startup.defaultPageReady();
},
},
options: {
renderActions: {
addMenu: [],
checkLoading: [],
},
ignoreHtmlClass: "tex2jax_ignore",
processHtmlClass: "tex2jax_process",
},
loader: {
load: ["[tex]/noerrors", "[tex]/mhchem"],
},
};