mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-06 11:48:41 +00:00
* Implement \TextOrMath, \@secondoftwo * Parser now tells MacroExpander about mode switching. (This seems preferable to a circular reference between Parser and MacroExpander.) * Implement \TextOrMath * Improve when we switch modes so that this actually works, in all cases except single-symbol arguments. * Add \@secondoftwo to match \@firstoftwo. * Add comments documenting all the conditional macros * Define type for switchMode * Fix mode detection for ligatures * Switch mode before the call to parseSymbol() in parseGroup This fixes the Colorbox screenshot test.