Markdown copy matches the HTML
Markdown copy matches the HTML. Cloudflare's Markdown for Agents (February 2026) and similar setups answer Accept: text/markdown with a markdown version of the page; coding agents and some fetchers already ask for it. If that copy is generated from a different template, a draft, or strips the article body, agents read a page your visitors never see — the same problem as cloaking, in a new channel.
Key takeaways
- Check: Markdown copy matches the HTML is a site-level check in the technical group.
- Fix: Generate markdown from the final rendered HTML, after the same templates and edits.
- Not this: Serving a stub markdown that only has the title and a link.
- Effort: 30 min, site-level check; the audit drafts the fix from your own page.
| Check | Markdown copy matches the HTML |
|---|---|
| Layer | site-level check |
| Group | Technical |
| Typical effort | 30 min |
| Weight in the score | 1 on a scale of 1 to 3 |
| Checked by | the website, the Chrome extension and the WordPress plugin (same analyser, 69 checks) |
How do you fix “Markdown copy matches the HTML”?
- Fetch the page with curl -H 'Accept: text/markdown' and diff the text against the HTML article.
- Generate markdown from the final rendered HTML, after the same templates and edits.
- If you cannot keep them in sync, turn the markdown response off; HTML alone is fine.
What should you not do?
- A markdown copy with extra keywords or calls to action the HTML does not have.
- Serving a stub markdown that only has the title and a link.
Example
curl -s -H 'Accept: text/markdown' https://example.com/guide/ | head
Frequently asked questions
How long does it take to fix "Markdown copy matches the HTML"?
About 30 min. It usually needs a developer or the hosting panel.
Is "Markdown copy matches the HTML" checked per page or for the whole site?
It is a property of the whole site, so fixing it once covers every page. The website, the Chrome extension and the WordPress plugin run the same check.
What is the most common mistake with "Markdown copy matches the HTML"?
A markdown copy with extra keywords or calls to action the HTML does not have.
Sources
About the author
Related checks
Does your page pass this check? The audit runs all 69 and drafts the fix for you.