Skip to content

Commit c59285a

Browse files
authored
Merge pull request #1434 from mathjax/fix/mfenced-inner
Use proper TeX class for mfenced with open and close delimiters
2 parents 0b872a1 + 853f887 commit c59285a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ts/core/MmlTree/MmlNodes/mfenced.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ export class MmlMfenced extends AbstractMmlNode {
9696
if (this.close) {
9797
prev = this.close.setTeXclass(prev);
9898
}
99-
this.updateTeXclass(this.open);
99+
if (!this.open || !this.close) {
100+
this.updateTeXclass(this.open || this.childNodes[0] || this.close);
101+
}
100102
return prev;
101103
}
102104

0 commit comments

Comments
 (0)