Skip to content

Commit

Permalink
Use an example for the playground that actually looks good (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmke8 authored Feb 6, 2025
1 parent 942b550 commit 506c37d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions playground/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div class="container">
<h1>LaTeX to MathML</h1>
<p class="explanation-link">
<a href="#what-is-this">What is this?</a>
<a href="#what-is-this">What is this?</a> / <a href="https://github.com/tmke8/latex2mmlc">GitHub</a>
</p>
<div class="converter">
<div id="outputField" class="output-box"></div>
Expand Down Expand Up @@ -112,10 +112,9 @@ <h2 id="what-is-this">What is this?</h2>
(or, more specifically, MathML Core), which is then rendered
by your browser. For example, try this input:
</p>
<pre class="copyable"><code>\int \mathcal{D}\!x =
\lim_{N \to \infty}
\left( \frac{m}{2\pi i \hbar \Delta t} \right)^\frac{N}{2}
\int\!\cdots\!\int \prod_{i=1}^{N-1} dx_i</code></pre>
<pre class="copyable"><code>p\big(z;f(\theta)\big) =
\sum_{i=1}^K \gamma_i \mathcal{N}\big(z; f_i(\theta), \Sigma_i\big),
\quad\text{where }\sum_{i=1}^K \gamma_i = 1</code></pre>
<p>
Recent versions of all the major browsers support MathML
Core, so you should be able to see the rendered math.
Expand All @@ -142,8 +141,8 @@ <h2 id="what-is-this">What is this?</h2>
For example:
</p>
<pre class="copyable"><code>\begin{aligned}
x &= 1 \\
y + z &= 2
x &amp;= 1 \\
y + z &amp;= 2
\end{aligned}</code></pre>
</div>
</div>
Expand Down

0 comments on commit 506c37d

Please sign in to comment.