From 4e1d57e2d2f0fae4897a75ef053cabfda758fc79 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 21 Dec 2020 16:09:23 +1000 Subject: [PATCH] check formatting of .js files in aqt/data mathjax.js did not match //ts:format output --- qt/aqt/data/web/js/BUILD.bazel | 2 +- qt/aqt/data/web/js/mathjax.js | 44 +++++++++++++++++----------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/qt/aqt/data/web/js/BUILD.bazel b/qt/aqt/data/web/js/BUILD.bazel index 862363cb6..b47d90193 100644 --- a/qt/aqt/data/web/js/BUILD.bazel +++ b/qt/aqt/data/web/js/BUILD.bazel @@ -38,7 +38,7 @@ filegroup( prettier_test( name = "format_check", - srcs = glob(["*.ts"]), + srcs = glob(["*.ts", "*.js"]), ) # source files need fixing first diff --git a/qt/aqt/data/web/js/mathjax.js b/qt/aqt/data/web/js/mathjax.js index c863939c1..f5d99fb84 100644 --- a/qt/aqt/data/web/js/mathjax.js +++ b/qt/aqt/data/web/js/mathjax.js @@ -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"], - }, };