-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
50 lines (40 loc) · 1.79 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html>
<head>
<title>MarkJax</title>
<script type="text/javascript" src='dist/markjax.min.js'></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flexboxgrid/6.3.1/flexboxgrid.min.css">
<style>
body {
padding: 80px;
}
#input {
min-height: 200px;
}
</style>
</head>
<body>
<a href="https://github.com/codeassign/markjax"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
<div class="row">
<textarea class="col-xs-12 col-sm-6 col-md-6 col-lg-6" id="input" onkeyup="render()">
# MarkJax
Markdown + $\LaTeX$ parser made by [CodeAssign](https://codeassign.com).
It converts Markdown + $\LaTeX$ text, such as this one, and produces HTML.
It uses [marked](https://github.com/chjj/marked) as Markdown parser and [katex](https://khan.github.io/KaTeX/)
and [MathJax](https://www.mathjax.org/) as $\LaTeX$ parsers.
It is available on [GitHub](https://github.com/codeassign/markjax).
Lets write some math:
$$ f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi $$
</textarea>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6" id="output"></div>
</div>
<script type="text/javascript">
function render() {
var textarea = document.getElementById("input");
var preview = document.getElementById("output");
markjax(textarea.value, preview);
}
render();
</script>
</body>
</html>