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(
name = "format_check",
srcs = glob(["*.ts"]),
srcs = glob(["*.ts", "*.js"]),
)
# source files need fixing first

View File

@ -1,27 +1,27 @@
window.MathJax = {
tex: {
displayMath: [["\\[", "\\]"]],
processRefs: false,
processEnvironments: false,
packages: {
"[+]": ["noerrors", "mhchem"],
tex: {
displayMath: [["\\[", "\\]"]],
processRefs: false,
processEnvironments: false,
packages: {
"[+]": ["noerrors", "mhchem"],
},
},
},
startup: {
typeset: false,
pageReady: () => {
return MathJax.startup.defaultPageReady();
startup: {
typeset: false,
pageReady: () => {
return MathJax.startup.defaultPageReady();
},
},
},
options: {
renderActions: {
addMenu: [],
checkLoading: [],
options: {
renderActions: {
addMenu: [],
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"],
},
};