Skip to content

Commit f3ed39a

Browse files
committed
Don't use borders on background colors; fix error with recent changes to linebreaking (spacelimit was in em's but should be in em's*1000)
1 parent 104775c commit f3ed39a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

config/TeX-AMS-MML_SVG-full.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jax/output/SVG/autoload/multiline.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jax/output/SVG/jax.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
414414
// use it to modify the default penalty
415415
//
416416
var linebreak = PENALTY[values.linebreak||MML.LINEBREAK.AUTO];
417-
if (values.linebreak === MML.LINEBREAK.AUTO && w >= PENALTY.spacelimit)
417+
if (values.linebreak === MML.LINEBREAK.AUTO && w >= PENALTY.spacelimit*1000)
418418
{linebreak = [(w+PENALTY.spaceoffset)*PENALTY.spacefactor]}
419419
if (!(linebreak instanceof Array)) {
420420
// for breaks past the width, don't modify penalty

unpacked/jax/output/SVG/jax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@
10931093
var g = SVG.Element("g"); g.appendChild(svg.element);
10941094
svg.element = g; svg.removable = true;
10951095
}
1096-
svg.Add(BBOX.RECT(svg.h,svg.d,svg.w,{fill:values.background}),0,0,false,true);
1096+
svg.Add(BBOX.RECT(svg.h,svg.d,svg.w,{fill:values.background,stroke:"none"}),0,0,false,true)
10971097
}
10981098
//
10991099
// Add borders

0 commit comments

Comments
 (0)