Skip to content

Commit 853f887

Browse files
committed
Use proper TeX class for mfenced with open and close delimiters
1 parent 7805de5 commit 853f887

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)