mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-07 12:18:39 +00:00
7723d3dcaf3604040b91ed3805de09cb96a9942c
\text
function
Summary: Make all of the parsing functions keep track of whether they are parsing in math mode or text mode. Then, add a separate lexing function to lex text mode, which is different than the normal mode because it does weird things with spacing and allows a different set of characters. Test Plan: - See that the normal tests work - See that the huxley screenshot looks reasonable - See that none of the other huxley screenshots changed Reviewers: alpert Reviewed By: alpert Differential Revision: http://phabricator.khanacademy.org/D7578
KaTeX
Fast math!
To run locally
make setup
make serve
Perceptual diff
make pdiff
License
Languages
JavaScript
85.7%
Perl
4.6%
Prolog
3.2%
HTML
2.3%
Less
1.3%
Other
2.8%