Switch makeGlue from .mord .rule to .mspace (#1295)

* Switch makeGlue from .mord .rule to .mspace

* Update screenshots
This commit is contained in:
Erik Demaine
2018-05-08 15:28:53 -04:00
committed by Kevin Barabash
parent ba24d2073b
commit 5c159abfbb
5 changed files with 2 additions and 2 deletions

View File

@@ -608,8 +608,8 @@ const makeVerb = function(group: ParseNode, options: Options): string {
// either a vertical or horizontal list. In KaTeX, at least for now, it's // either a vertical or horizontal list. In KaTeX, at least for now, it's
// static space between elements in a horizontal layout. // static space between elements in a horizontal layout.
const makeGlue = (measurement: Measurement, options: Options): DomSpan => { const makeGlue = (measurement: Measurement, options: Options): DomSpan => {
// Make an empty span for the rule // Make an empty span for the space
const rule = makeSpan(["mord", "rule"], [], options); const rule = makeSpan(["mspace"], [], options);
const size = calculateSize(measurement, options); const size = calculateSize(measurement, options);
rule.style.marginRight = `${size}em`; rule.style.marginRight = `${size}em`;
return rule; return rule;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB