Anki/qt/aqt/data/web/js/mathjax.js
Henrik Giesel 4229f21084 Include default MathJax packages
* by default load all the default tex-chtml packages, which additionally include:
  * require: using \require{package-name} to load a package
  * autoload: using a command from a different package automatically loads it
  * configmacros: allows for definition of predefined macros
2020-11-15 20:56:50 +01:00

34 lines
612 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',
]
}
};