mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-10 21:48:41 +00:00
Post-process the list of atoms after they are created, changing binary operators to ordinary atoms according to the TeXbook's rules. This makes the `prev` argument redundant, so drop it. This commit assumes that the math class (mop/mbin/mrel/etc.) comes first in the `classes` list, if present. Add a TODO to change the signature of `makeSpan/makeSymbol` to enforce this invariant.