Fix problem with identifying display math due to change from looking of frame to using previousSibling.
This commit is contained in:
parent
f6c72b41d6
commit
dd2ac513ce
|
@ -683,8 +683,8 @@
|
||||||
// Get the data about the math
|
// Get the data about the math
|
||||||
//
|
//
|
||||||
var jax = script.MathJax.elementJax, math = jax.root,
|
var jax = script.MathJax.elementJax, math = jax.root,
|
||||||
span = script.previousSibling;
|
div = script.previousSibling;
|
||||||
div = (jax.HTMLCSS.display ? (span||{}).parentNode : span);
|
span = (jax.HTMLCSS.display ? (div||{}).firstChild||div : div);
|
||||||
if (!div) return;
|
if (!div) return;
|
||||||
//
|
//
|
||||||
// Set the font metrics
|
// Set the font metrics
|
||||||
|
|
|
@ -315,8 +315,8 @@
|
||||||
// Get the data about the math
|
// Get the data about the math
|
||||||
//
|
//
|
||||||
var jax = script.MathJax.elementJax, math = jax.root,
|
var jax = script.MathJax.elementJax, math = jax.root,
|
||||||
span = script.previousSibling;
|
div = script.previousSibling;
|
||||||
div = (jax.SVG.display ? (span||{}).parentNode : span),
|
span = (jax.SVG.display ? (div||{}).firstChild||div : div),
|
||||||
localCache = (SVG.config.useFontCache && !SVG.config.useGlobalCache);
|
localCache = (SVG.config.useFontCache && !SVG.config.useGlobalCache);
|
||||||
if (!div) return;
|
if (!div) return;
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue
Block a user