Skip to content

Commit b89d216

Browse files
committed
Fix incorrect index in which map to use
1 parent 66bc783 commit b89d216

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mathjax3-ts/output/common/OutputJax.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ AbstractOutputJax<N, T, D> {
274274
const maps = [new Map() as MetricMap<N>, new Map() as MetricMap<N>];
275275
for (const i of maps.keys()) {
276276
for (const node of domMaps[i].keys()) {
277-
maps[i].set(node, this.measureMetrics(domMaps[0].get(node)));
277+
maps[i].set(node, this.measureMetrics(domMaps[i].get(node)));
278278
}
279279
}
280280
//
@@ -335,7 +335,7 @@ AbstractOutputJax<N, T, D> {
335335
adaptor.setStyle(right, 'width', '10000em');
336336
adaptor.setStyle(right, 'float', '');
337337
}
338-
return adaptor.append(node, adaptor.clone(display? this.testDisplay : this.testInline) as N);
338+
return adaptor.append(node, adaptor.clone(display? this.testDisplay : this.testInline) as N) as N;
339339
}
340340

341341
/**

0 commit comments

Comments
 (0)