mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
Update MathJax2 config to MathJax3 config
Used: https://mathjax.github.io/MathJax-demos-web/convert-configuration/convert-configuration.html
This commit is contained in:
parent
52ca4ab854
commit
c5cfbfa1ab
1 changed files with 19 additions and 17 deletions
28
qt/aqt/data/web/js/vendor/mathjax/conf.js
vendored
28
qt/aqt/data/web/js/vendor/mathjax/conf.js
vendored
|
@ -1,20 +1,22 @@
|
||||||
window.MathJax = {
|
window.MathJax = {
|
||||||
jax: ["input/TeX", "output/CommonHTML"],
|
tex: {
|
||||||
extensions: ["tex2jax.js"],
|
|
||||||
TeX: {
|
|
||||||
extensions: ["AMSmath.js", "AMSsymbols.js", "noErrors.js", "noUndefined.js", "mhchem.js"]
|
|
||||||
},
|
|
||||||
tex2jax: {
|
|
||||||
displayMath: [["\\[", "\\]"]],
|
displayMath: [["\\[", "\\]"]],
|
||||||
processRefs: false,
|
processRefs: false,
|
||||||
processEnvironments: false,
|
processEnvironments: false,
|
||||||
|
packages: ['base', 'ams', 'noerrors', 'noundefined', 'mhchem']
|
||||||
},
|
},
|
||||||
messageStyle: "none",
|
startup: {
|
||||||
skipStartupTypeset: true,
|
typeset: false
|
||||||
showMathMenu: false,
|
},
|
||||||
AuthorInit: function () {
|
options: {
|
||||||
MathJax.Hub.processSectionDelay = 0;
|
renderActions: {
|
||||||
MathJax.Hub.processUpdateTime = 0;
|
addMenu: [],
|
||||||
MathJax.Hub.processUpdateDelay = 0;
|
checkLoading: []
|
||||||
|
},
|
||||||
|
ignoreHtmlClass: 'tex2jax_ignore',
|
||||||
|
processHtmlClass: 'tex2jax_process'
|
||||||
|
},
|
||||||
|
loader: {
|
||||||
|
load: ['[tex]/noerrors', '[tex]/mhchem']
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue