mdshare#
Type markdown on the left, see it rendered on the right. The document is compressed and stored in the URL itself, so sharing the page is just copying the link: there is no server and nothing is uploaded.
Math#
Inline math like works, and so do display equations:
Code#
import numpy as np
def gaussian(x, sigma=1.0):
"""The integrand from the equation above."""
return np.exp(-x**2 / sigma**2)
x = np.linspace(-4, 4, 1000)
print(np.trapezoid(gaussian(x), x)) # ~ sqrt(pi)
// The URL encoding used by this page
const payload = deflate(new TextEncoder().encode(text))
location.hash = base64url(payload)
Tables and task lists#
| Feature | Plugin | Status |
|---|---|---|
| Math | remark-math + KaTeX | works |
| Code highlighting | highlight.js | works |
| Tables, footnotes | remark-gfm | works |
| Diagrams | mermaid | works |
- render markdown
- store the document in the URL
- your ideas here
Diagrams#
graph LR
A[edit markdown] --> B[compress]
B --> C[base64url]
C --> D[URL hash]
D --> E[share the link]
E --> A
Notes#
Footnotes[1], strikethrough, and block quotes:
The URL is the document.
Like this one. ↩︎