外掛標籤
開發者團隊
② 後台搜尋「Berq Markdown – Markdown Pages for AI & LLM Crawlers」→ 直接安裝(推薦)
原文外掛簡介
Berq Markdown makes your WordPress content instantly consumable by AI assistants, LLM crawlers (GPTBot, ClaudeBot, Googlebot-AI), and Markdown-aware tools — without duplicating your content or creating separate pages.
Appending .md to any public page or post URL (e.g. https://example.com/about.md) returns a clean, structured Markdown file with YAML frontmatter. The plugin handles content from all common sources: Gutenberg blocks, classic editor, shortcodes, and custom PHP templates.
How it works
When a visitor or crawler requests /about.md, the plugin intercepts the request, finds the matching WordPress post, converts the HTML content to Markdown, and serves it with the correct Content-Type: text/markdown header — all without creating any new database entries or files.
Key Features
Automatic .md URLs — any public post or page URL + .md returns clean Markdown
YAML frontmatter — every .md file includes title, description, url, date_modified, author, and language
Full content compatibility — works with Gutenberg blocks, classic editor, shortcodes, and custom PHP page templates
HTML to Markdown conversion — pure PHP, no external dependencies; handles headings, paragraphs, lists, links, images, tables, code blocks, and more
Internal link rewriting — links to internal pages are rewritten to their .md equivalent automatically
URL exclusions with wildcards — exclude specific URL patterns using * as a wildcard (e.g. /cart/*, */checkout*)
Post type selection — choose which post types (posts, pages, custom post types) are served as Markdown
Transient caching — optional cache with configurable TTL to reduce server load at scale
tag injection — injects a tag in every page’s
[btrmd313_md_link] shortcode — renders a link to the current page’s .md file, opens in a new tab
Multilingual support — detects language via Polylang or WPML, adds language and alternates to frontmatter and emits hreflang link tags
Public content rendering — always renders content as a non-logged-in visitor, so member-only sections are not exposed
Admin settings page — all options configurable under Settings > Berq Markdown, with a Settings link on the Plugins page
