Title: Markdown Content Negotiator for LLMs
Author: Serkan Algur
Published: <strong>2026 年 3 月 5 日</strong>
Last modified: 2026 年 3 月 6 日

---

搜索插件

![](https://ps.w.org/sa-ai-markdown/assets/icon-256x256.png?rev=3475223)

# Markdown Content Negotiator for LLMs

 作者：[Serkan Algur](https://profiles.wordpress.org/kaisercrazy/)

[下载](https://downloads.wordpress.org/plugin/sa-ai-markdown.1.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/sa-ai-markdown/#description)
 * [评价](https://cn.wordpress.org/plugins/sa-ai-markdown/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/sa-ai-markdown/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/sa-ai-markdown/#developers)

 [支持](https://wordpress.org/support/plugin/sa-ai-markdown/)

## 描述

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.

## 安装

 1. Upload the `markdown-content-negotiator-for-llms` folder to the `/wp-content/plugins/`
    directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Configure your preferences under ‘Settings > AI Markdown’.

## 常见问题

### How do I test the Markdown output?

You can test it using a tool like cURL:

    ```
    curl -H "Accept: text/markdown" https://your-site.com/post-slug/
    ```

### How are tokens calculated?

We use a standard heuristic of ~4 characters per token to provide an estimate in
the `X-Markdown-Tokens` header.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Markdown Content Negotiator for LLMs」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Serkan Algur ](https://profiles.wordpress.org/kaisercrazy/)

[帮助将「Markdown Content Negotiator for LLMs」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/sa-ai-markdown)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/sa-ai-markdown/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/sa-ai-markdown/)，或通过[RSS](https://plugins.trac.wordpress.org/log/sa-ai-markdown/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/sa-ai-markdown/)。

## 更新日志

#### 1.1.0

 * 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.

#### 1.0.9

 * Misspelling fix

#### 1.0.7

 * Refactor avoid trademark of ‘WP’

#### 1.0.5

 * Name Change & Refactor plugin

#### 1.0.4

 * 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.

#### 1.0.3

 * Ability to generate markdown when post changes.

#### 1.0.2

 * Featured Image support
 * Description creation

#### 1.0.1

 * Code Block Conversion Support (pre and code)

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.1.0**
 *  最后更新：**5 月前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **6.9.5**
 *  PHP 版本 ** 7.3 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/sa-ai-markdown/)
 * 标签
 * [AI](https://cn.wordpress.org/plugins/tags/ai/)[caching](https://cn.wordpress.org/plugins/tags/caching/)
   [content negotiation](https://cn.wordpress.org/plugins/tags/content-negotiation/)
   [gutenberg](https://cn.wordpress.org/plugins/tags/gutenberg/)[markdown](https://cn.wordpress.org/plugins/tags/markdown/)
 *  [高级视图](https://cn.wordpress.org/plugins/sa-ai-markdown/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/sa-ai-markdown/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/sa-ai-markdown/reviews/)

## 贡献者

 *   [ Serkan Algur ](https://profiles.wordpress.org/kaisercrazy/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/sa-ai-markdown/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://github.com/serkanalgur)