Skip to content

Commit 6fd363c

Browse files
committed
Make sure SRE options are set if only a convert call is used.
1 parent a8088bb commit 6fd363c

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

ts/a11y/complexity/collapse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export type CollapseFunctionMap = Map<string, CollapseFunction>;
4949
export type TypeRole<T> = { [type: string]: T | { [role: string]: T } };
5050

5151
/**
52-
* The class for determining of a subtree can be collapsed
52+
* The class for determining if a subtree can be collapsed
5353
*/
5454
export class Collapse {
5555
/**

ts/a11y/explorer/KeyExplorer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2097,7 +2097,7 @@ function buildMap(tree: SexpTree, map: Map<string, Set<string>>): Set<string> {
20972097
return descendants;
20982098
}
20992099

2100-
// Can be replaced with ES2024 implementation of Set.prototyp.difference
2100+
// Can be replaced with ES2024 implementation of Set.prototype.difference
21012101
/**
21022102
* Set difference between two sets A and B: A\B.
21032103
*

ts/a11y/semantic-enrich.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ export function EnrichedMathItemMixin<
202202
} else {
203203
mml = this.adjustSelections();
204204
}
205+
if (!document.processed.isSet('enriched')) {
206+
Sre.setupEngine(document.options.sre);
207+
}
205208
const enriched = Sre.toEnriched(mml);
206209
this.inputData.enrichedMml = math.math = this.serializeMml(enriched);
207210
//
@@ -351,7 +354,7 @@ export function EnrichedMathDocumentMixin<
351354

352355
/**
353356
* Enrich the MathItem class used for this MathDocument, and create the
354-
* temporary MathItem used for enrchment
357+
* temporary MathItem used for enrichment
355358
*
356359
* @override
357360
* @class

0 commit comments

Comments
 (0)