Integration of MathJax, KaTeX and Asymptote with scribble, to typeset math in Racket documentation
Go to file
Emily Eisenberg e68cc472c6 Make errors more informative
Make error messages from the lexing and parsing stages be a bit more helpful. If
provided with the input and a position, the error will display the error
position, and the nearby input with the error position underlined (yay combining
marks). Also, standardize the errors a bit (remove doubled "Error:" strings)

Test plan:
 - Make sure the errors look totally sweet (before: {F15602}, after: {F15603})
 - Trigger every error (that can be triggered) in Parser, Lexer, and buildTree
   using the inputs:
  `a^`
  `a_`
  `a^x^x`
  `a_x_x`
  `\color f`
  `\blue `
  `\Huge`
  `\llap`
  `\text`
  `\dfrac`
  `\dfrac{x}`
  `\d`
  `\blue{`
  `\color{#f`
  `{\Huge{x}}`
 - See that the tests still work

Auditors: alpert
2014-03-30 23:05:37 -04:00
build Add a setup rule to Makefile 2013-07-30 13:54:43 -07:00
static Fix a weird bug with rlap 2014-03-29 23:33:05 -04:00
test Fix a weird bug with rlap 2014-03-29 23:33:05 -04:00
.arcconfig Rename everything to KaTeX 2013-07-10 14:08:50 -07:00
.gitignore Somehow manage to fix the sizing bugs 2014-03-20 21:36:37 -04:00
buildTree.js Make errors more informative 2014-03-30 23:05:37 -04:00
domTree.js Add ability to calculate heights/depths 2013-08-13 18:16:43 -07:00
fontMetrics.js Add some AMS characters 2013-08-14 17:39:24 -07:00
katex.js Empty the output element before parsing the input 2013-11-12 14:09:13 -08:00
Lexer.js Make errors more informative 2014-03-30 23:05:37 -04:00
LICENSE.txt Add MIT License 2014-01-31 17:47:12 -08:00
Makefile Don't die if things are already installed 2014-03-20 18:30:24 -07:00
metric_parse.rb Add some AMS characters 2013-08-14 17:39:24 -07:00
Options.js Add a \color command for custom colors 2014-03-27 12:34:45 -04:00
package.json Basic perceptual diffing support for KaTeX 2014-01-29 16:29:21 -08:00
ParseError.js Make errors more informative 2014-03-30 23:05:37 -04:00
Parser.js Make errors more informative 2014-03-30 23:05:37 -04:00
parseTree.js Remove Parser options usage 2013-07-13 18:15:17 -07:00
README.md Add "http://" to links in README 2014-02-18 17:34:30 -08:00
server.js Compile .less on demand for test page 2014-03-20 20:22:07 -07:00
Style.js Add ability to calculate heights/depths 2013-08-13 18:16:43 -07:00
symbols.js Add tie symbol (~) 2014-03-27 19:23:15 -04:00
utils.js Don't change global prototype: local utils.indexOf 2014-01-14 19:52:53 -08:00

KaTeX

Fast math!

To run locally

make setup
make serve

Perceptual diff

make pdiff

License

MIT License