3Type markdown on the left, see it rendered on the right. The document is
4compressed and stored in the URL itself, so sharing the page is just copying
5the link: there is no server and nothing is uploaded.
7## Math
9Inline math like $e^{i\pi} + 1 = 0$ works, and so do display equations:
11$$
12\int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi}
13$$
15$$
16\begin{pmatrix} a & b \\ c & d \end{pmatrix}
17\begin{pmatrix} x \\ y \end{pmatrix}
18=
19\begin{pmatrix} ax + by \\ cx + dy \end{pmatrix}
20$$
22## Code
24```python
25import numpy as np
27def gaussian(x, sigma=1.0):
28 """The integrand from the equation above."""
29 return np.exp(-x**2 / sigma**2)
31x = np.linspace(-4, 4, 1000)
32print(np.trapezoid(gaussian(x), x)) # ~ sqrt(pi)
33```
35```javascript
36// The URL encoding used by this page
37const payload = deflate(new TextEncoder().encode(text))
38location.hash = base64url(payload)
39```
41## Tables and task lists
43| Feature | Plugin | Status |
44| --- | --- | --- |
45| Math | remark-math + KaTeX | works |
46| Code highlighting | highlight.js | works |
47| Tables, footnotes | remark-gfm | works |
48| Diagrams | mermaid | works |
50- [x] render markdown
51- [x] store the document in the URL
52- [ ] your ideas here
54## Diagrams
56```mermaid
57graph LR
58 A[edit markdown] --> B[compress]
59 B --> C[base64url]
60 C --> D[URL hash]
61 D --> E[share the link]
62 E --> A
63```
65## Notes
67Footnotes[^1], ~~strikethrough~~, and block quotes:
69> The URL *is* the document.
71[^1]: Like this one.