A WordPress plugin that detects when a request is made for content in Markdown format (via the Accept: text/markdown header) and serves a clean, pre-generated Markdown version of the page instead of HTML.
- Content Negotiation: Detects
Accept: text/markdownand bypasses the standard theme template. - YAML Frontmatter: Automatically prepends metadata (Title, Date, Author, Categories, Permalink).
- Automated Caching: Uses WP-Cron to pre-generate Markdown for all published posts and pages to minimize response time.
- LLM-Friendly Headers:
X-Markdown-Tokens: Estimates token count using standard heuristics.X-Content-Signal: Provides document metadata (type, depth, priority) and custom signals.
- Customizable: Admin settings page to select Post Types and configure global content signals.
- Clone or download this repository.
- Upload the folder to your
wp-content/plugins/directory. - Activate the plugin in the WordPress Admin.
- Go to Settings > AI Markdown to configure your settings.
To request the Markdown version of a post, include the appropriate header in your HTTP request:
curl -H "Accept: text/markdown" https://yourdomain.com/your-post/---
title: "Hello World"
date: "2026-02-20 12:00:00"
author: "Serkan Algur"
permalink: "https://yourdomain.com/hello-world/"
categories: ["Uncategorized"]
---
# Hello World
Welcome to WordPress. This is your first post. Edit or delete it, then start writing!Available under Settings > AI Markdown:
- Enabled Post Types: Select which post types (post, page, etc.) should be available in Markdown.
- X-Content-Signal Extra: Add custom global signals like
ai-train=yes, search=yes. - Manual Regeneration: Trigger a full cache refresh for all posts.
- Added WooCommerce Product support.
- Added Elementor content rendering support.
- Improved WooCommerce product data extraction (dimensions, weight, price with currency).
- Moved product templates to internal code-based generation.
- Fixed Markdown output escaping issues.
- Support for WooCommerce Products.
- Added product-specific Markdown templates.
- Better metadata extraction for e-commerce sites.
- Misspelling fix
- Refactor avoid trademark of 'WP'
- Name Change & Refactor plugin
- Security: Implemented Late Escaping for all echoed variables and generated data.
- Security: Added nonces and strict data sanitization for admin settings.
- Standards: Full compliance with WordPress PHP Coding Standards (WPCS).
- Refactor: Added complete Docblock documentation and standardized all hook callbacks.
- Ability to generate markdown when post changes.
- Featured Image support
- Description creation
- Code Block Conversion Support (pre and code)
- Inital Release
GPL-2.0+
