Patch
Improves overall treatment of empty elements and those empty elements that lead to visual spacing.
This solves a number of issues reported in MathJax: mathjax/MathJax#3512, ttps://github.com/mathjax/MathJax/issues/3028
- Distinguishes between simple empty elements and phantom elements that lead to spaces. This could be improved in the future.
- Fixes issues with missing phantom elements in mfenced elements.
- Improves semantic treatment of empty script elements. In particular, simplifies enrichment and rebuilding by putting the simplified semantic into the correct node. E.g.,
a^{\ }is marked as a single identifier in theanode.
Full Changelog: v5.0.0-beta.4...v5.0.0-beta.5