v5.0 now supports SvelteKit ProjectsRead docs

Your pages, now in Markdown

Send Accept: text/markdown to any route → clean Markdown back. Zero page changes. Next.js & SvelteKit.

Terminal
$ npx accept-md init

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.

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.

01

Intercept

Middleware detects Accept: text/markdown and rewrites the request to an internal handler.

02

Render & convert

The handler fetches the page as HTML — your app renders once — then converts it to Markdown.

03

Return clean output

Chrome, boilerplate, and nav are stripped. Headings, links, images, and tables stay intact. Responses are cacheable.

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.

Your project root
$ npx accept-md init

# Then install deps
$ pnpm install

Full documentation — configuration, CLI commands, and manual setup.

Start serving Markdown today

Add accept-md to your Next.js or SvelteKit project. Your pages stay exactly as they are.