
Serve Markdown to AI Agents with Accept Headers
Serve Markdown to AI agents and LLMs via the Accept: text/markdown header. Browsers get HTML, agents get clean Markdown.
svelte-markdown is a Svelte 5 renderer with 24 markdown renderers, 83 HTML tag renderers, and per-chunk allow/deny filtering.
It streams LLM output from Claude Code, ChatGPT, and Gemini at a median ~3ms per update with XSS-safe defaults. The package has zero runtime dependencies, ships at 83.6 kB packed, and is fully TypeScript-typed under MIT.