siefkenj / unified-latex

Utilities for parsing and manipulating LaTeX ASTs with the Unified.js framework
MIT License
85 stars 20 forks source link

Multiple newlines processed as multiple whitspace in math mode #14

Open siefkenj opened 1 year ago

siefkenj commented 1 year ago

Parsing

$x

y$

produces x followed by two whitespaces followed by y. All whitespace should be collapsed (otherwise it can produce a blank line when pretty-printing).