Markdown alternate
Markdown alternate. Some agents prefer a clean Markdown copy of a page to parsing HTML. Two conventions exist: a <link rel="alternate" type="text/markdown"> pointing at a .md version, or content negotiation (Accept: text/markdown with Vary: Accept).
Key takeaways
- Check: Markdown alternate is a site-level check in the technical group.
- Fix: Add <link rel="alternate" type="text/markdown" href="/path/to/page.md"> in the <head>.
- Not this: Letting the .md copies get indexed next to the HTML pages: two URLs with the same text split the signals.
- Effort: developer, site-level check; the audit drafts the fix from your own page.
Why does “Markdown alternate” matter?
It is optional and new; no search engine needs it. It helps coding agents and some answer tools.
| Check | Markdown alternate |
|---|---|
| Layer | site-level check |
| Group | Technical |
| Typical effort | developer |
| Checked by | the website, the Chrome extension and the WordPress plugin (same analyser, 69 checks) |
How do you fix “Markdown alternate”?
- Generate a Markdown version of each article at build time (static sites) or on the fly (a plugin).
- Add <link rel="alternate" type="text/markdown" href="/path/to/page.md"> in the <head>.
- Keep it content-equivalent to the HTML — same text, same facts.
- Send the .md file with an X-Robots-Tag: noindex header, or a Link: <the article URL>; rel="canonical" header, so search engines do not index it as a duplicate of the article.
What should you not do?
- Serving different content in the Markdown version. That is cloaking.
- Letting the .md copies get indexed next to the HTML pages: two URLs with the same text split the signals.
Example
<link rel="alternate" type="text/markdown" href="https://yoursite.com/kazbegi.md">
Frequently asked questions
How long does it take to fix "Markdown alternate"?
About developer. It usually needs a developer or the hosting panel.
Is "Markdown alternate" 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 alternate"?
Serving different content in the Markdown version. That is cloaking.
Sources
- Google: overview of crawlers and fetchers
- Google: introduction to robots.txt
- OpenAI: GPTBot, OAI-SearchBot and ChatGPT-User
- Google: AI features and your website
About the author
Related checks
Does your page pass this check? The audit runs all 69 and drafts the fix for you.