KaTeX/ParseError.js
Emily Eisenberg 383ca01434 Sync with Khan-exercises
Summary:
Add some things in to make this more useful to khan-exercises.
Notably, make KaTeX.process create and clean up its own .katex node, and rename
.mathmathmath -> .katex.

Test Plan: Make test, make sure the main page still renders stuff

Reviewers: alpert

Reviewed By: alpert

Differential Revision: http://phabricator.khanacademy.org/D3061
2013-07-17 15:43:55 -07:00

8 lines
154 B
JavaScript

function ParseError(message) {
this.message = "TeX parse error: " + message;
}
ParseError.prototype = Error.prototype;
module.exports = ParseError;