Markup Playground

Upmath-style parser · live preview

Editor
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
PreviewUpmath Playground

Hello, Upmath Playground

Write markdown with KaTeXKaTeX math support, GFM tables, task lists, and a <span style="font-size:2em;visibility:hidden;display:inline-block">a</span> spacer.


Display Math

E=mc2E = mc^2ex2dx=π\int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi}

Inline Math

The quadratic formula: x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

Euler's identity: eiπ+1=0e^{i\pi} + 1 = 0

Spacer

Item AaItem B — the <span style="font-size:2em;visibility:hidden;display:inline-block">a</span> inserts a wide invisible space.

Task List

  • Write the parser
  • Add KaTeX support
  • Add more features
  • Deploy to production

GFM Table

Command Syntax Renders
Display math <!--KATEX_PH_2--> Centered block
Inline math <!--KATEX_PH_6--> Inline formula
Spacer <span style="font-size:2em;visibility:hidden;display:inline-block">a</span> Wide invisible space

Markdown

  • Bold and italic and strikethrough
  • Links
  • inline code and ```
    code blocks

### HTML Elements

<font color="#00f0ff">This text is cyan via the font tag.</font>

<button
  style="background:#00f0ff; color:#000; border:0; padding:8px 16px; border-radius:6px; font-weight:600; cursor:pointer;">
  Neon Button
</button>

> Blockquote with a splash of style.

Rotate device for split view