Markdown Content Negotiator for LLMs

Detects Accept: text/markdown and serves pre-generated Markdown versions of posts and pages for AI agents and LLMs.

By Serkan Algur

Version 1.1.0 Active Installs 0+ Updated 1 week ago 10 days old

Description

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/markdown header.
  • YAML Frontmatter: Includes metadata like Title, Date, Author, and Categories in a structured format.
  • Performance Tracking: Provides an X-Markdown-Tokens header using standard LLM token heuristics.
  • AI Metadata: Includes X-Content-Signal headers 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.

Plugin comparisons

See how this plugin stacks up against alternatives side by side.