Markdown Content Negotiator for LLMs is a performance-optimized WordPress plugin designed to serve your website’s content in a format that AI agents and LLMs (Large Language Models) love: Clean Markdown.
Using standard HTTP Content Negotiation, the plugin detects when a request is made with the Accept: text/markdown header. Instead of serving the standard HTML theme, it returns a Markdown version of the post or page, complete with YAML Frontmatter, token estimation headers, and customizable content signals.
To ensure maximum performance and minimal server load, Markdown versions are pre-generated and cached using WP-Cron.
Key Features
- Content Negotiation: Automatically switches to Markdown output when requested via the
Accept: text/markdownheader. - YAML Frontmatter: Includes metadata like Title, Date, Author, and Categories in a structured format.
- Performance Tracking: Provides an
X-Markdown-Tokensheader using standard LLM token heuristics. - AI Metadata: Includes
X-Content-Signalheaders to help agents understand the nature of the document. - Background Caching: Uses WP-Cron to pre-calculate Markdown strings, ensuring zero latency during requests.
- Admin Settings: Choose which post types to enable and configure global AI content signals.