Merge pull request #1549 from dpvc/issue1548
Fix determination of line-breaing parent element. #1548.
This commit is contained in:
commit
0940fcea09
|
@ -68,7 +68,7 @@ MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function () {
|
|||
//
|
||||
var parent = this;
|
||||
while (parent.inferred || (parent.parent && parent.parent.type === "mrow" &&
|
||||
parent.parent.data.length === 1)) {parent = parent.parent}
|
||||
parent.parent.isEmbellished())) {parent = parent.parent}
|
||||
var isTop = ((parent.type === "math" && parent.Get("display") === "block") ||
|
||||
parent.type === "mtd");
|
||||
parent.isMultiline = true;
|
||||
|
|
|
@ -67,7 +67,7 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
|
|||
//
|
||||
var parent = this;
|
||||
while (parent.inferred || (parent.parent && parent.parent.type === "mrow" &&
|
||||
parent.parent.data.length === 1)) {parent = parent.parent}
|
||||
parent.isEmbellished())) {parent = parent.parent}
|
||||
var isTop = ((parent.type === "math" && parent.Get("display") === "block") ||
|
||||
parent.type === "mtd");
|
||||
parent.isMultiline = true;
|
||||
|
|
|
@ -65,7 +65,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
|
|||
//
|
||||
var parent = this;
|
||||
while (parent.inferred || (parent.parent && parent.parent.type === "mrow" &&
|
||||
parent.parent.data.length === 1)) {parent = parent.parent}
|
||||
parent.isEmbellished())) {parent = parent.parent}
|
||||
var isTop = ((parent.type === "math" && parent.Get("display") === "block") ||
|
||||
parent.type === "mtd");
|
||||
parent.isMultiline = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user