Skip to content

Commit 0940fce

Browse files
authored
Merge pull request #1549 from dpvc/issue1548
Fix determination of line-breaing parent element. #1548.
2 parents d26341c + 4fdec9f commit 0940fce

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

unpacked/jax/output/CommonHTML/autoload/multiline.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () {
6868
//
6969
var parent = this;
7070
while (parent.inferred || (parent.parent && parent.parent.type === "mrow" &&
71-
parent.parent.data.length === 1)) {parent = parent.parent}
71+
parent.parent.isEmbellished())) {parent = parent.parent}
7272
var isTop = ((parent.type === "math" && parent.Get("display") === "block") ||
7373
parent.type === "mtd");
7474
parent.isMultiline = true;

unpacked/jax/output/HTML-CSS/autoload/multiline.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
6767
//
6868
var parent = this;
6969
while (parent.inferred || (parent.parent && parent.parent.type === "mrow" &&
70-
parent.parent.data.length === 1)) {parent = parent.parent}
70+
parent.isEmbellished())) {parent = parent.parent}
7171
var isTop = ((parent.type === "math" && parent.Get("display") === "block") ||
7272
parent.type === "mtd");
7373
parent.isMultiline = true;

unpacked/jax/output/SVG/autoload/multiline.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
6565
//
6666
var parent = this;
6767
while (parent.inferred || (parent.parent && parent.parent.type === "mrow" &&
68-
parent.parent.data.length === 1)) {parent = parent.parent}
68+
parent.isEmbellished())) {parent = parent.parent}
6969
var isTop = ((parent.type === "math" && parent.Get("display") === "block") ||
7070
parent.type === "mtd");
7171
parent.isMultiline = true;

0 commit comments

Comments
 (0)