check formatting of .js files in aqt/data

mathjax.js did not match //ts:format output
This commit is contained in:
Damien Elmes 2020-12-21 16:09:23 +10:00
parent 65a35fef55
commit 4e1d57e2d2
2 changed files with 23 additions and 23 deletions

View file

@ -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

View file

@ -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"],
},
}; };