Khan/KaTeX — pull request #146 by kevinb7 (2014-10-02 18:37:01+00:00)
Title: Removed some duplicate code in the parser + other minor cleanups

The main change was adding an 'optional' param to parseGroup removing the need for parseOptionalGroup. There are some other minor changes which I'll comment below.