Cloudflare's Markdown for Agents feature uses content negotiation to convert HTML pages into Markdown on the fly for clients that declare a preference for the format. When a system sends a request with an `Accept: text/markdown` header, Cloudflare's network intercepts it, retrieves the source HTML, and streams a structured Markdown response containing YAML frontmatter and preserved JSON-LD data. The feature is available at no additional cost on Pro, Business, and Enterprise plans, and it can be scoped to specific subdomains, paths, or custom hostnames using Configuration Rules.
- The system preserves security and caching headers like HSTS and CSP, but strips body-dependent headers like `ETag` and `Last-Modified`.
- A default `content-signal` header is added to indicate that content is approved for AI training, search, and agentic input.
- Decompressed HTML inputs are limited to 6 MiB during the conversion process.