Markdown Endpoints for AI
Gives every post and page a clean Markdown version for AI agents, at a .md URL or by Accept header, converted from the rendered page with noindex and canonical headers built in.
Screenshots
Markdown Endpoints for AI gives every post and page a clean Markdown version that AI agents and crawlers can read without wading through your theme, menus, scripts and ads. Add .md to any address, or request the normal URL with an Accept: text/markdown header, and an agent gets the article as structured text with its title, author, dates and canonical link. Fewer tokens to process means your content is cheaper and easier for AI tools to read and cite, and every Markdown response points back to your page with noindex and a canonical link, so it never shows up as duplicate content in Google.
Most Markdown plugins convert the raw post content, which falls apart on Elementor, Divi, Beaver Builder and shortcodes. This one renders the page exactly as a logged-out visitor sees it, then converts just the content area. Tables stay real Markdown tables, code blocks keep their language, images keep their alt text and captions, links become absolute URLs, and footnotes come through. Ads, share buttons, newsletter boxes, related posts, cookie banners and tables of contents are stripped out, and facts that only live in your schema, like product prices, ratings, FAQ answers and opening hours, are added as short readable sections. The frontmatter comes from Yoast SEO, Rank Math or SEOPress, so there's nothing new to fill in.
Drafts, private, password-protected, noindexed and members-only content is never served, and paywalled posts only expose their free portion. Each file is built when you publish, saved to disk and rebuilt in the background with Action Scheduler. Agents find it through a link in each page's head, an llms.txt file and a Markdown sitemap, and the Insights tab shows which AI crawlers read which pages, the pages AI reads most and how many tokens each page saves. A caching check, per-post controls, content signals, an attribution line and rate limiting are built in, and a side-by-side preview in the editor shows exactly what agents get.
Features
- Two ways to ask. Add .md to any address, or request the normal URL with an Accept: text/markdown header.
- Rendered, not raw. Converts the page a visitor sees, so Elementor, Divi, Beaver Builder and shortcodes come out as text.
- Real Markdown tables. Comparison and pricing tables stay tables, with their column alignment, for AI tools to quote.
- Clutter stripped out. Ads, share buttons, newsletter boxes, related posts, cookie banners and tables of contents are removed.
- Built to be cited. Alt text and captions, absolute links, footnotes and code blocks with their language are all kept.
- Frontmatter from your SEO plugin. Title, description, author, dates, categories and canonical URL from Yoast, Rank Math or SEOPress.
- Schema carried over. Product prices, ratings, FAQ answers and business hours become short readable sections.
- No duplicate content. Every .md response sends noindex and a canonical Link header pointing at the HTML page.
- Nothing private gets out. Drafts, private, password, noindex and members-only posts are never served; paywalls show the free part.
- llms.txt and a sitemap. Serve a generated llms.txt or add a section to your own, plus a sitemap of every .md URL.
- AI insights. See which AI agents read which pages, the pages AI reads most, and the tokens each page saves.
- Fast and cached. Built when you publish, served from disk, and rebuilt in the background with Action Scheduler.
- Click Download above to save
markdown-endpoints-ai.zip. Leave it zipped. - In your WordPress dashboard, go to Plugins > Add New Plugin and click Upload Plugin.
- Choose the ZIP and click Install Now, then Activate Plugin.
To update later, upload a newer ZIP the same way. WordPress offers to replace the installed version and keeps your settings.
What Is a Markdown Version of a Page For?
AI agents like ChatGPT, Claude and Perplexity fetch pages to answer questions and cite sources. A normal page is mostly theme code, menus, scripts and ads, while the Markdown version is just the article, often more than 90% smaller. That costs agents fewer tokens and makes your content easier to quote accurately.
Will It Create Duplicate Content in Google?
No. Every .md response sends X-Robots-Tag: noindex and a canonical Link header pointing at the HTML page, so search engines treat your page as the original. The Markdown sitemap sends noindex too and isn't added to robots.txt.
Does It Work With Elementor, Divi and Other Page Builders?
Yes, that's what it's built for. It renders the page the way a logged-out visitor sees it, then converts only the post's content area, so builder layouts and shortcodes come out as real text instead of shortcode soup. If a page ever uses the wrong part, set its CSS selector on the Conversion tab and check the result in the side-by-side preview.
Can Private or Members-Only Content Leak?
No. Markdown requests are handled as a logged-out visitor before WordPress even looks up the post. Drafts, private, password-protected, noindexed and members-only posts get a 404, paywalled posts marked with Google's paywall schema only show their free part, and a cached file is deleted the moment its post stops being public.
Will My Page Cache or CDN Get Confused?
Markdown responses tell page caches not to keep them, and responses to the Accept header are marked private with Vary: Accept, so visitors never get Markdown. The built-in caching check asks your site for a page as an agent and then as a browser to prove it on your own setup.
Does It Make an llms.txt File?
Yes. It can serve a generated llms.txt with your key pages, the pages AI agents read most and your latest posts, or add a section to an llms.txt file that you or your SEO plugin already made, leaving the rest of the file alone.
How Do I See What AI Agents Are Reading?
The Insights tab shows requests per day, which AI crawlers and agents fetched which pages, kept apart from search engines and other bots, and how many tokens each page saves. With our AI Crawler Controls plugin active, both plugins name agents the same way.
Can I Turn It Off for Some Posts?
Yes. Choose which post types get a Markdown version, leave out whole categories, or switch it off on a single post from its Markdown for AI panel in the editor, where you can also set that post's content signals for search, AI answers and AI training.
1.0.0
- First release.
- See https://github.com/jmsprsns/markdown-endpoints-ai/releases for the full release history.
Download
More Free WordPress Plugins
Honest Last Modified Date
Only changes a post's "Last modified" date when enough of it has really changed: a minimum number of words, a percentage, or both, set separately for posts and pages.Reading Time
Shows an accurate "5 min read" on your posts, added automatically or with a block, shortcode or PHP, with per-post control and an optional reading progress bar.Blog Post to Audio Podcast
Turns your blog posts into natural-sounding audio with ElevenLabs, adds a lightweight, accessible player to each post, and publishes your blog as a podcast for Apple Podcasts and Spotify.Let's Grow Your Business
Want some free consulting? Let's hop on a call and talk about what we can do to help.
