Next.js & SvelteKit → Markdown
Your pages, now in Markdown
Features
Every use case, one header
Drop into any Next.js or SvelteKit project. Works on Vercel out of the box.
AI & LLM ready
Feed clean Markdown to crawlers, RAG pipelines, and LLM agents — no scraping required.
Docs export
Let users download any page as Markdown for offline reading, migration, or archival.
Content syndication
Republish the same pages to newsletters, CMSs, or any tool that speaks Markdown.
SEO & auditing
Expose a structured, text-only representation for analysis, accessibility audits, and portability.
Zero page changes
Middleware handles everything. Your components stay untouched — no Puppeteer, no custom server.
How it works
Three steps, zero page edits
Your components stay untouched. Next.js middleware or SvelteKit hooks handle the routing — deploys to Vercel with no custom server.
Intercept
Middleware detects Accept: text/markdown and rewrites the request to an internal handler.
Render & convert
The handler fetches the page as HTML — your app renders once — then converts it to Markdown.
Return clean output
Chrome, boilerplate, and nav are stripped. Headings, links, images, and tables stay intact. Responses are cacheable.
Install
One command. Done.
Run from your project root. The CLI detects your framework, configures middleware or hooks, and wires up the handler — deploy-ready on Vercel.
$ npx accept-md init
# Then install deps
$ pnpm installFull documentation — configuration, CLI commands, and manual setup.
Ship it
Start serving Markdown today
Add accept-md to your Next.js or SvelteKit project. Your pages stay exactly as they are.