About
About accept-md
accept-md is open-source tooling that adds Accept: text/markdown support to Next.js and SvelteKit sites. When a client requests Markdown, the same URL returns a clean text representation of the page — without a separate publishing pipeline.
Principles
- Use the pages you already have as the source of truth.
- Serve Markdown through HTTP content negotiation, not a separate content silo.
- Keep browser traffic unchanged while making routes easier for agents to read.
- Generate JavaScript-compatible handlers so non-TypeScript apps work too.
How it works
The CLI detects your framework, adds a route handler, and writes configuration. Regular HTML requests are unchanged. Markdown requests are routed internally, rendered once as HTML, converted to Markdown, and returned with frontmatter and JSON-LD preserved.
Project links
Maintained by slick-enterprises. MIT licensed.