Fix our parsing strategy so it is the same as (or very similar to) TeX's

Summary:
Rewrote the parser to make this work, and added a bunch of tests to make sure
this does work. In the process, refactored all of our functions into a separate
file, functions.js. Added a bunch of comments to Parser.js. Also, update jasmine
so we can make our tests better, and add a lint_blacklist.txt to not lint bad
jasmine stuff.

Fixes #10
Fixes #12

Test Plan:
- Make sure all of the tests still work, and all of the new ones work also
- Make sure huxley screenshots didn't change

Reviewers: alpert

Reviewed By: alpert

Differential Revision: http://phabricator.khanacademy.org/D12989
This commit is contained in:
Emily Eisenberg
2014-09-09 23:18:37 -07:00
parent 5b4fa72299
commit 0c9e9738c3
15 changed files with 4330 additions and 4026 deletions

View File

@@ -3,19 +3,9 @@
<head>
<script src="jasmine/jasmine.js"></script>
<script src="jasmine/jasmine-html.js"></script>
<script src="jasmine/boot.js"></script>
<link rel="stylesheet" href="jasmine/jasmine.css">
<script src="katex-tests.js"></script>
<script>
var jasmineEnv = jasmine.getEnv();
jasmineEnv.updateInterval = 250;
var htmlReporter = new jasmine.HtmlReporter();
jasmineEnv.addReporter(htmlReporter);
window.onload = function() {
jasmineEnv.execute();
};
</script>
</head>
<body>
</body>