Rendering Options

Option A: pandoc (simplest)

pandoc input.md -o output.html --standalone --css=eink.css

Pros: zero code, mature. Cons: no [[wikilink]] resolution, no backlinks.

Option B: Bun script with markdown-it

// Render markdown with wiki-link resolution from Amytis's slug registry

Pros: full Amytis feature parity. Cons: requires Bun runtime, more code.

Option C: Amytis custom build target Configure Amytis with a kindle config that uses a stripped CSS theme and static export. Pros: same build pipeline, zero duplication. Cons: Next.js static export might still include JS.