Go to file
Ben Alpert e46dd418b3 Ignore whitespace following \text
Summary:
In something like `\text {hello, world}` we want to ignore the first space but not the second. This suggests to me that perhaps we shouldn't be in text-lexing mode until we actually see the first curly brace, so this changes us to do that.

Note that this disallows doing unbraced text things now; it seemed nontrivial to lex a single text character while ignoring spaces. We should probably fix it sometime, but for now we'll fall back to MathJax anyway so I'm not super concerned.

We should also add a huxley test for this.

Test Plan: `\text {2x 2}` rendered `2x 2` in a non-italic font.

Reviewers: jack, emily

Reviewed By: emily

Differential Revision: http://phabricator.khanacademy.org/D9376
2014-05-30 12:29:32 -07:00
2013-07-30 13:54:43 -07:00
2014-04-22 21:01:29 -04:00
2014-05-30 12:29:32 -07:00
2013-07-10 14:08:50 -07:00
2014-04-22 21:01:29 -04:00
2013-08-14 17:39:24 -07:00
2014-03-30 23:05:37 -04:00
2014-01-31 17:47:12 -08:00
2013-08-14 17:39:24 -07:00
2014-03-30 23:05:37 -04:00
2014-05-30 12:29:32 -07:00
2013-07-13 18:15:17 -07:00
2014-02-18 17:34:30 -08:00
2014-03-27 19:23:15 -04:00

KaTeX

Fast math!

To run locally

make setup
make serve

Perceptual diff

make pdiff

License

MIT License

Description
KaTeX fork
Readme MIT 71 MiB
Languages
JavaScript 85.7%
Perl 4.6%
Prolog 3.2%
HTML 2.3%
Less 1.3%
Other 2.8%