| 开发者 | kkarpieszuk |
|---|---|
| 更新时间 | 2026年4月30日 21:58 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
post, page, attachment on a typical site), a single-item URL can return Content-Type: text/markdown; charset=UTF-8 instead of the themed HTML page.Accept header that lists text/markdown (requests with text/markdown;q=0 are ignored).output_format=md (handy for browsers and manual testing).the_content filters, then converted to Markdown using the league/html-to-markdown library. A short YAML front matter block includes title and permalink.<link rel="alternate" type="text/markdown" href="…?output_format=md" /> so clients can find the Markdown URL.kolibia_ar_markdown_post_types — Defaults to all public, built-in post types from core; override to add custom post types or remove types (e.g. attachment).kolibia_ar_post_markdown — Filter the final Markdown string.kolibia_ar_markdown_password_required — Filter the Markdown shown when a password is required.agent-ready folder into wp-content/plugins/ (or install the distributed package).No. Just activate the plugin and you're good to go. AI Agents will automatically discover your site's content.
No. Normal visitors still get HTML. Markdown is returned only when text/markdown is negotiated or ?output_format=md is used (and the same permission rules as viewing the content apply).
Singular URLs for built-in public types from core (typically posts, pages, and media attachment pages). Custom post types are not included unless you add them via the kolibia_ar_markdown_post_types filter.
output_format=md, alternate link, admin “View as AI Agent”, HTML-to-Markdown for singular core public post types.