mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 19:28:39 +00:00
Rewrite the parser
Summary: Make our own parser that doesn't use jison, so that we can handle funny TeX syntax, and to make it smaller. Test Plan: Make sure the tests pass with the new parser. Reviewers: alpert Reviewed By: alpert Differential Revision: http://phabricator.khanacademy.org/D3029
This commit is contained in:
@@ -3,8 +3,6 @@ var path = require("path");
|
||||
var browserify = require("browserify");
|
||||
var express = require("express");
|
||||
|
||||
var jisonify = require("./jisonify");
|
||||
|
||||
var app = express();
|
||||
|
||||
app.use(express.logger());
|
||||
@@ -12,7 +10,6 @@ app.use(express.logger());
|
||||
app.get("/katex.js", function(req, res, next) {
|
||||
var b = browserify();
|
||||
b.add("./katex");
|
||||
b.transform(jisonify);
|
||||
|
||||
var stream = b.bundle({standalone: "katex"});
|
||||
|
||||
@@ -28,7 +25,6 @@ app.get("/katex.js", function(req, res, next) {
|
||||
app.get("/test/katex-tests.js", function(req, res, next) {
|
||||
var b = browserify();
|
||||
b.add("./test/katex-tests");
|
||||
b.transform(jisonify);
|
||||
|
||||
var stream = b.bundle({});
|
||||
|
||||
|
Reference in New Issue
Block a user