Why Clean Markdown Mirrors Outperform Raw HTML for AI Agents
Eliminating 70%–90% HTML boilerplate noise
Modern web pages routinely ship 150 KB to 600 KB of navigation wrappers, inline SVG icons, CSS utilities, and hydration JSON around 3 KB of real documentation text. Every unnecessary tag burns model context tokens and dilutes retrieval relevance.
Converting pages to clean semantic Markdown strips scripts, styles, nav bars, and footers while preserving heading hierarchy, code blocks, lists, and canonical links.
Spotting Client-Side Rendered (CSR) empty shells
Because most AI crawlers do not run client-side JavaScript, an SPA returning <div id="root"></div> appears completely blank. IndexMirror automatically flags CSR empty shells so you can fix SSR/SSG or serve pre-rendered .md mirrors at the edge.
Frequently Asked Questions
- How are token savings calculated?
- We estimate token usage using standard ~4 characters per token across raw HTML versus extracted clean Markdown so you can see the immediate context window reduction.
- Why was my page flagged as a CSR empty shell?
- A page is flagged when the initial HTTP HTML contains an SPA mount container (such as #root or #__next) and yields fewer than 150 visible characters or 25 words without JavaScript.
- Can I serve clean .md versions of all my pages automatically?
- Yes. IndexMirror Live Mirror incrementally syncs your sitemap into clean .md files on Cloudflare R2 alongside /llms.txt and /llms-full.txt.
- Does this converter execute JavaScript or bypass paywalls?
- No. It fetches public HTML using IndexMirrorBot/1.0 just like standard AI crawlers, accurately reflecting what non-JS bots actually receive.