mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 19:28:39 +00:00
* Use JS for spacing between atoms instead of CSS Summary: This is the first step towards creating an intermediate representation that can be used to generate HTML, SVG, and Canvas commands for rendering. By generating spans that contain the width of the spaces instead of relying on CSS sibling rules we'll be able to one day replaces the spans with intermeidate 'Glue' nodes (in a later PR). An added benefit of this approach is that is enables us to programmatically change the values for thinspace, mediumspace, and thickspace which will allow us to implement the \setlength command. Test Plan: - npm test - dockers/Screenshotter/screenshotter.sh --verify * fixed failures in BinCancellation, BoldSymbol, and OperatorName * update screenshots * don't use current size when determining size of spaces, update more screenshots * fix spacing in SizingBaseline and StyleSwitching * actually do the right thing for sizing groups * fix \not for Chrome and Firefox * do TODOs * address feedback from the code review * fix issue in delimsizing.js * add TODO to think about a better solution in href.js * fix typos, simplify href, be honest about paddingLeft for \not
26 KiB
1024x768px
26 KiB
1024x768px
