Skip to content

Code, Math & Diagrams

StellarDeck renders code, math, diagrams, and QR codes directly from markdown — no plugins, no config.

Fenced code blocks with a language tag for syntax highlighting. Optionally highlight specific lines with {n} after the language name.

```python {2}
def greet(name):
return f"Hello, {name}!"
greet("StellarDeck")
```

Standard GFM tables with column alignment via :---, :---:, and ---:.

slide.md
# Feature Status

| Feature | Status | Since |
|---------|--------|-------|
| Tables | Done | v0.1 |
| Math | Done | v0.2 |
| Diagrams | Done | v0.2 |

Wrap LaTeX in single dollar signs for inline math. Mix freely with regular markdown.

slide.md
# Inline Math

The loss function: $L = -\sum y_i \log(\hat{y}_i)$

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

Double dollar signs $$...$$ on their own line for standalone equations.

slide.md
# Display Math

$$E = mc^2$$

The most famous equation in physics.

Wrap Mermaid syntax in a :::diagram block. Renders as SVG with a hand-drawn look.

slide.md
# Process

:::diagram
graph LR
A[Write .md] --> B{Feature?}
B --> C[QR Code]
B --> D[Math]
B --> E[Diagram]
:::

Use ![qr](url) for a full-slide QR code, or ![qr, right](url) to split the slide with text on the left.

slide.md
![qr, right](https://stellardeck.dev)

# Try StellarDeck

Scan the QR code to visit the docs.