Skip to content

Commit 5562037

Browse files
committed
Prevent unwanted forced inline breaks in SVG semantics elements. (mathjax/MathJax#3428)
1 parent afaf1ea commit 5562037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ts/output/common/Wrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ 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
712+
const childNodes = this.childNodes[0]?.node?.isInferred || this.node.isKind('semantics')
713713
? this.childNodes[0].childNodes
714714
: this.childNodes;
715715
if (this.node.isToken || !childNodes[i]) {

0 commit comments

Comments
 (0)