Fix \hphantom width (#1809)

* Fix \hphantom width

* Spin up phony screenshot test

* Make better choice of smash screenshot test

* Real screenshotter test

* Add strict mode

* Fix lint error

* useStrictBehavior

* Revert to previous strict setting

* useStrictBehavior "phantomSpacing"

* Fix tests via nonstrictSettings

* Fix documentation

* Remove bin|rel
This commit is contained in:
Ron Kok
2019-01-01 08:49:24 -08:00
committed by ylemkimon
parent 8346294bf3
commit f5234a2f01
9 changed files with 29 additions and 13 deletions

View File

@@ -71,7 +71,8 @@ defineFunction({
children: [{type: "elem", elem: node}],
}, options);
return node;
// For spacing, TeX treats \smash as a math group (same spacing as ord).
return buildCommon.makeSpan(["mord"], [node], options);
},
mathmlBuilder: (group, options) => {
const inner = mml.buildExpression(ordargument(group.body), options);