mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 11:18:39 +00:00
* Use ES6 in static/main.js + Lint static/main.js * Enable hot module replacement(HMR) in webpack-dev-server * Disable no-console in static/main.js * Use seperate entry point/bundle for the test page(/static/main.js)
18 lines
524 B
HTML
18 lines
524 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>KaTeX Test</title>
|
|
<script defer src="/main.js" type="text/javascript"></script>
|
|
</head>
|
|
<body>
|
|
<textarea id="input" rows="5">
|
|
\left( x \right) \left( x^2 \right) % comment
|
|
\left( \frac{a}{b} \right) \left( \frac{a^2}{b} \right)
|
|
\left( \dfrac{a}{b} \right) \left( \dfrac{a^2}{b} \right)
|
|
</textarea>
|
|
<div id="math"></div>
|
|
<input id="permalink" type="button" value="permalink">
|
|
</body>
|
|
</html>
|