<reponame>LRjunior/javascript-katex-sample
<!DOCTYPE html>
<!-- KaTeX requires the use of the HTML5 doctype. Without it, KaTeX may not render properly -->
<html>
  <head>
    <link rel="stylesheet" href="katex/katex.min.css">
    <script defer src="katex/katex.min.js"></script>
    <script defer src="katex/contrib/auto-render.min.js" onload="renderMathInElement(document.body);"></script>
<style>
body { font-family: sans-serif; }
.katex { font-size: 1em }
</style>
  </head>
<body>
<h1>hello</h1>
<p>Alfa <span class="katex">\(\mathcal{O}(n\log n)\)</span> beta</p>
<div class="katex">\[\sin f(x) = \frac{a}{b-1}\]</div>
<div class="katex">\[P(d)=P(w_{1}|d)P(w_{2}|d)\ldots P(w_{L}|d)=\prod_{w_{i}}^{L}{P(w_{i}|d)}\]</div>
<div class="katex">\[P(z|d,w) = \frac{P(d,w|z)P(z)}{P(d)\sum_{z'}P(w|z')P(z'|d)} = \frac{P(w|z)P(z|d)}{\sum_{z'}P(w|z')P(z'|d)}\]</div>

<div class="katex">\[R_{t+1}(p_i) = d \sum_{p_j\in S(p_i)} \frac{R_t(p_j)}{L(p_j)} + \frac{1-d}{N}\]</div>
</body>
</html> 