
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
15 lines
495 B
HTML
15 lines
495 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>KaTeX Test</title>
|
|
<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"></div>
|
|
</body>
|
|
</html>
|