From 2d9cd83fe6960cbac3d3707c5ce9c9f1ef11956b Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sun, 2 Oct 2016 11:59:58 -0400 Subject: [PATCH] Use original src for mglyph image rather than full URI (better for mathjax-node). --- unpacked/jax/output/SVG/autoload/mglyph.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unpacked/jax/output/SVG/autoload/mglyph.js b/unpacked/jax/output/SVG/autoload/mglyph.js index b5916f07c..433bc0f17 100644 --- a/unpacked/jax/output/SVG/autoload/mglyph.js +++ b/unpacked/jax/output/SVG/autoload/mglyph.js @@ -46,7 +46,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () { def.transform = "translate(0,"+H+") matrix(1 0 0 -1 0 0)"; def.preserveAspectRatio = "none"; this.SUPER(arguments).Init.call(this,def); - this.element.setAttributeNS(XLINKNS,"href",img.src); + this.element.setAttributeNS(XLINKNS,"href",img.SRC); this.w = this.r = W; this.h = this.H = H + y; this.d = this.D = -y; this.l = 0; } @@ -71,7 +71,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () { img = this.img.img; img.onload = MathJax.Callback(["SVGimgLoaded",this]); img.onerror = MathJax.Callback(["SVGimgError",this]); - img.src = values.src; + img.src = img.SRC = values.src; MathJax.Hub.RestartAfter(img.onload); } if (this.img.status !== "OK") {