mirror of
https://github.com/ankitects/anki.git
synced 2025-12-14 23:30:59 -05:00
check formatting of .js files in aqt/data
mathjax.js did not match //ts:format output
This commit is contained in:
parent
65a35fef55
commit
4e1d57e2d2
2 changed files with 23 additions and 23 deletions
|
|
@ -38,7 +38,7 @@ filegroup(
|
||||||
|
|
||||||
prettier_test(
|
prettier_test(
|
||||||
name = "format_check",
|
name = "format_check",
|
||||||
srcs = glob(["*.ts"]),
|
srcs = glob(["*.ts", "*.js"]),
|
||||||
)
|
)
|
||||||
|
|
||||||
# source files need fixing first
|
# source files need fixing first
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,27 @@
|
||||||
window.MathJax = {
|
window.MathJax = {
|
||||||
tex: {
|
tex: {
|
||||||
displayMath: [["\\[", "\\]"]],
|
displayMath: [["\\[", "\\]"]],
|
||||||
processRefs: false,
|
processRefs: false,
|
||||||
processEnvironments: false,
|
processEnvironments: false,
|
||||||
packages: {
|
packages: {
|
||||||
"[+]": ["noerrors", "mhchem"],
|
"[+]": ["noerrors", "mhchem"],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
startup: {
|
||||||
startup: {
|
typeset: false,
|
||||||
typeset: false,
|
pageReady: () => {
|
||||||
pageReady: () => {
|
return MathJax.startup.defaultPageReady();
|
||||||
return MathJax.startup.defaultPageReady();
|
},
|
||||||
},
|
},
|
||||||
},
|
options: {
|
||||||
options: {
|
renderActions: {
|
||||||
renderActions: {
|
addMenu: [],
|
||||||
addMenu: [],
|
checkLoading: [],
|
||||||
checkLoading: [],
|
},
|
||||||
|
ignoreHtmlClass: "tex2jax_ignore",
|
||||||
|
processHtmlClass: "tex2jax_process",
|
||||||
|
},
|
||||||
|
loader: {
|
||||||
|
load: ["[tex]/noerrors", "[tex]/mhchem"],
|
||||||
},
|
},
|
||||||
ignoreHtmlClass: "tex2jax_ignore",
|
|
||||||
processHtmlClass: "tex2jax_process",
|
|
||||||
},
|
|
||||||
loader: {
|
|
||||||
load: ["[tex]/noerrors", "[tex]/mhchem"],
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue