Switch makeGlue from .mord .rule to .mspace (#1295)
* Switch makeGlue from .mord .rule to .mspace * Update screenshots
@@ -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;
|
||||||
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |