
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
16 lines
642 B
HTML
16 lines
642 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>KaTeX Test</title>
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js" type="text/javascript"></script>
|
|
<script src="katex.js" type="text/javascript"></script>
|
|
<script src="main.js" type="text/javascript"></script>
|
|
<link href="katex.css" rel="stylesheet" type="text/css">
|
|
<link href="main.css" rel="stylesheet" type="text/css">
|
|
</head>
|
|
<body>
|
|
<input type="text" value="\blue\dfrac{2(y-z)}{3} \div \orange{\arctan x^{4/3}}" id="input" />
|
|
<div id="math" class="mathmathmath"></div>
|
|
</body>
|
|
</html>
|