mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-11 14:08:42 +00:00
Summary: Remove a single `vertical-align: top`, and somewhow it now works. May the gods of CSS have mercy on us. Also added some tests. Test Plan: - See that the huxley tests don't have any changes - See that the new huxley screenshots look reasonable - Run the normal tests and see that they work Reviewers: alpert Reviewed By: alpert Differential Revision: http://phabricator.khanacademy.org/D7494
33 lines
1.0 KiB
HTML
33 lines
1.0 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>Huxley test</title>
|
|
<script src="/katex.js" type="text/javascript"></script>
|
|
<link href="/fonts/fonts.css" rel="stylesheet" type="text/css">
|
|
<link href="/katex.less.css" rel="stylesheet" type="text/css">
|
|
<style type="text/css">
|
|
#math, #pre, #post {
|
|
font-size: 4em;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<span id="pre"></span>
|
|
<span id="math"></span>
|
|
<span id="post"></span>
|
|
<script type="text/javascript">
|
|
var query = {};
|
|
var queryVars = window.location.search.slice(1).split("&");
|
|
console.log(queryVars);
|
|
for (var i = 0; i < queryVars.length; i++) {
|
|
var split = queryVars[i].split("=");
|
|
query[split[0]] = decodeURIComponent(split[1]);
|
|
}
|
|
var mathNode = document.getElementById("math");
|
|
katex.process(query["m"], mathNode);
|
|
document.getElementById("pre").innerHTML = query["pre"] || "";
|
|
document.getElementById("post").innerHTML = query["post"] || "";
|
|
</script>
|
|
</body>
|
|
</html>
|