Skip to content

Commit bacc102

Browse files
authored
Merge pull request #1166 from mathjax/fix/format
Fix prittier issues from recent commits
2 parents b5c184b + ad0de82 commit bacc102

8 files changed

Lines changed: 12 additions & 11 deletions

File tree

ts/a11y/explorer/Region.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ export class LiveRegion extends StringRegion {
363363
border: '2px solid #CCCCCC',
364364
},
365365
['.' + LiveRegion.className + '_Show']: {
366-
display: 'block'
366+
display: 'block',
367367
},
368368
});
369369
}

ts/adaptors/chooseAdaptor.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,3 @@ import { context } from '../util/context.js';
2929
* Select which adaptor to use (depending on whether we are in a browser or node.js)
3030
*/
3131
export const chooseAdaptor = context.document ? browserAdaptor : liteAdaptor;
32-

ts/components/loader.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ export const Loader = {
270270
getRoot(): string {
271271
if (context.document) {
272272
const script =
273-
context.document.currentScript || context.document.getElementById('MathJax-script');
273+
context.document.currentScript ||
274+
context.document.getElementById('MathJax-script');
274275
if (script && script instanceof HTMLScriptElement) {
275276
return script.src.replace(/\/[^/]*$/, '');
276277
}

ts/components/startup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { CommonOutputJax } from '../output/common.js';
4242
import { DOMAdaptor } from '../core/DOMAdaptor.js';
4343
import { PrioritizedList } from '../util/PrioritizedList.js';
4444
import { OptionList, OPTIONS } from '../util/Options.js';
45-
import { context} from '../util/context.js';
45+
import { context } from '../util/context.js';
4646

4747
import { TeX } from '../input/tex.js';
4848

ts/input/tex/ParseMethods.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,7 @@ const ParseMethods = {
207207
* @param {any[]} args A list of additional arguments.
208208
*/
209209
environment(parser: TexParser, env: string, func: ParseMethod, args: any[]) {
210-
const mml = parser.itemFactory
211-
.create('begin')
212-
.setProperty('name', env);
210+
const mml = parser.itemFactory.create('begin').setProperty('name', env);
213211
parser.Push(func(parser, mml, ...args.slice(1)) as StackItem);
214212
},
215213
};

ts/input/tex/cases/CasesConfiguration.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ export const CasesMethods = {
134134
*
135135
* @param {TexParser} parser The active tex parser.
136136
* @param {string} name The environment name.
137+
* @returns {ParseResult} The parser result code.
137138
*/
138139
Entry(parser: TexParser, name: string): ParseResult {
139140
if (!parser.stack.Top().getProperty('numCases')) {
@@ -210,6 +211,7 @@ export const CasesMethods = {
210211
const text = tex.substring(parser.i, i).replace(/^\s*/, '');
211212
parser.PushAll(ParseUtil.internalMath(parser, text, 0));
212213
parser.i = i;
214+
return null;
213215
},
214216

215217
/**

ts/input/tex/empheq/EmpheqConfiguration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ export const EmpheqMethods = {
3838
/**
3939
* Handle an empheq environment.
4040
*
41-
* @param {TexParser} parser The active tex parser.
42-
* @param {EmpheqBeginItem} begin The begin item for this environment.
41+
* @param {TexParser} parser The active tex parser.
42+
* @param {BeginItem} begin The begin item for this environment.
4343
*/
4444
Empheq(parser: TexParser, begin: BeginItem) {
4545
if (parser.stack.env.closing === begin.getName()) {

ts/ui/menu/MenuUtil.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@
2121
* @author dpvc@mathjax.org (Davide Cervone)
2222
*/
2323

24-
import {context} from '../../util/context.js';
24+
import { context } from '../../util/context.js';
2525

2626
/**
2727
* True when platform is a Mac (so we can enable CMD menu item for zoom trigger)
2828
*/
29-
export const isMac = context.window?.navigator?.platform?.substring(0, 3) === 'Mac';
29+
export const isMac =
30+
context.window?.navigator?.platform?.substring(0, 3) === 'Mac';
3031

3132
/**
3233
* @param {string} text The text to be copied to the clipboard

0 commit comments

Comments
 (0)