Documentation
Build with accept-md
Install, configure, and operate Accept: text/markdown support for Next.js and SvelteKit.
Start
Installation
Install accept-md in Next.js or SvelteKit and verify that Markdown negotiation works.
Reference
Configuration
Configure which routes serve Markdown, what gets cleaned, and how responses are cached.
Reference
Markdown Output
Understand the Markdown, YAML frontmatter, and JSON-LD that accept-md returns to agents.
Reference
CLI Reference
Use accept-md init, doctor, fix-routes, and version-check in local and CI workflows.
Production
Caching and CDN Behavior
Cache Markdown responses safely with Vary: Accept, ISR-aware fetches, and deployment-specific checks.
Production
Troubleshooting
Fix common accept-md setup issues, including HTML responses, 404s, route detection, and version mismatches.
Looking for implementation examples?
Use the integration pages for framework-specific setup paths, then return here for configuration, output, caching, and troubleshooting.
View integrations