Skip to content

Commit c12a9d4

Browse files
authored
Merge pull request #1346 from mathjax/issue3428
Prevent unwanted forced inline breaks in SVG semantics elements. (mathjax/MathJax#3428)
2 parents 64a7fd6 + 20a5452 commit c12a9d4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ts/output/common/Wrapper.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -709,9 +709,10 @@ export class CommonWrapper<
709709
if (this.node.isEmbellished) {
710710
return [this, this.coreMO()] as any as [WW, WW];
711711
}
712-
const childNodes = this.childNodes[0]?.node?.isInferred
713-
? this.childNodes[0].childNodes
714-
: this.childNodes;
712+
const childNodes =
713+
this.childNodes[0]?.node?.isInferred || this.node.isKind('semantics')
714+
? this.childNodes[0].childNodes
715+
: this.childNodes;
715716
if (this.node.isToken || !childNodes[i]) {
716717
return [this, null] as any as [WW, WW];
717718
}

0 commit comments

Comments
 (0)