[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fsVyYfVfMhV58Zjeq5TMQ--4NZcRsni4uTLO0ArYSLXo":3},{"slug":4,"display_name":5,"profile_url":6,"plugin_count":7,"total_installs":8,"avg_security_score":9,"avg_patch_time_days":10,"trust_score":11,"computed_at":12,"plugins":13},"selvasudar","Selvakumar Duraipandian","https:\u002F\u002Fprofiles.wordpress.org\u002Fselvasudar\u002F",1,10,100,30,94,"2026-04-04T11:44:29.087Z",[14],{"slug":15,"name":16,"version":17,"author":5,"author_profile":6,"description":18,"short_description":19,"active_installs":8,"downloaded":20,"rating":21,"num_ratings":21,"last_updated":22,"tested_up_to":23,"requires_at_least":24,"requires_php":25,"tags":26,"homepage":32,"download_link":33,"security_score":9,"vuln_count":21,"unpatched_count":21,"last_vuln_date":34,"fetched_at":35},"markdown-for-ai-agents","Markdown for AI Agents","1.0.0","\u003Cp>Markdown for AI Agents is a lightweight WordPress plugin that enables HTTP content negotiation for your site’s content. When a client (like an AI agent or a custom script) requests a page with the \u003Ccode>Accept: text\u002Fmarkdown\u003C\u002Fcode> header, the plugin intercepts the request and returns a clean, structured Markdown representation of the post or page content.\u003C\u002Fp>\n\u003Cp>This is ideal for AI crawlers, RAG (Retrieval-Augmented Generation) systems, and non-browser clients that prefer machine-friendly text over complex HTML.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Important note:\u003C\u002Fstrong> This plugin is primarily a developer\u002Fintegration tool. Human visitors browsing your site will never see any difference — the Markdown output is only served when explicitly requested via the \u003Ccode>Accept: text\u002Fmarkdown\u003C\u002Fcode> HTTP header. Normal browser requests always receive the standard HTML page.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Key Features:\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Automatically detects \u003Ccode>Accept: text\u002Fmarkdown\u003C\u002Fcode> headers.\u003C\u002Fli>\n\u003Cli>Converts HTML content to clean Markdown using the League HTMLToMarkdown library.\u003C\u002Fli>\n\u003Cli>Strips away theme layout, navigation, headers, footers, and sidebars — serving only the main content.\u003C\u002Fli>\n\u003Cli>Adds useful HTTP response headers: \u003Ccode>Content-Type: text\u002Fmarkdown\u003C\u002Fcode>, \u003Ccode>Vary: Accept\u003C\u002Fcode>, and \u003Ccode>X-Markdown-Word-Count\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>Respects WordPress visibility rules and filters.\u003C\u002Fli>\n\u003Cli>No configuration required — works out of the box for posts, pages, and custom post types.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3>How It Works\u003C\u002Fh3>\n\u003Cp>This plugin uses a standard web technique called \u003Cstrong>HTTP content negotiation\u003C\u002Fstrong>. The same URL on your site can serve different representations of the same content depending on what the client asks for:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>A regular browser sends \u003Ccode>Accept: text\u002Fhtml\u003C\u002Fcode> \u003Cspan aria-hidden=\"true\" class=\"wp-exclude-emoji\">→\u003C\u002Fspan> receives your normal HTML page.\u003C\u002Fli>\n\u003Cli>An AI agent sends \u003Ccode>Accept: text\u002Fmarkdown\u003C\u002Fcode> \u003Cspan aria-hidden=\"true\" class=\"wp-exclude-emoji\">→\u003C\u002Fspan> receives a clean Markdown version of the same page.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>No extra URLs, no duplicate content, no configuration needed. The plugin hooks into WordPress’s \u003Ccode>template_redirect\u003C\u002Fcode> action, detects the \u003Ccode>Accept\u003C\u002Fcode> header, captures the rendered HTML, converts it to Markdown, and returns it with appropriate headers.\u003C\u002Fp>\n\u003Ch3>Why Markdown for AI Agents?\u003C\u002Fh3>\n\u003Cp>When building RAG (Retrieval-Augmented Generation) applications or AI pipelines that ingest web content, HTML is extremely noisy. A typical WordPress page contains thousands of tokens worth of HTML tags, inline styles, navigation menus, scripts, and layout markup — none of which carries meaning for an AI model.\u003C\u002Fp>\n\u003Cp>Serving clean Markdown instead can reduce token consumption by up to 60%, which means:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Lower API costs\u003C\u002Fstrong> — fewer tokens ingested when loading pages into vector stores or LLM pipelines.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Faster processing\u003C\u002Fstrong> — less text for the model to parse, filter, and discard.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Better retrieval accuracy\u003C\u002Fstrong> — higher signal-to-noise ratio improves the quality of RAG results.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Simpler pipelines\u003C\u002Fstrong> — no need for custom HTML stripping logic on the client side; the plugin handles it server-side.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Any AI agent, crawler, or ingestion script that sends \u003Ccode>Accept: text\u002Fmarkdown\u003C\u002Fcode> in its request header will automatically receive the clean Markdown version — no extra URLs, no separate endpoints, no changes to your content workflow.\u003C\u002Fp>\n","Serve clean Markdown versions of WordPress content to AI agents using HTTP content negotiation.",142,0,"2026-03-09T01:32:00.000Z","6.9.4","6.9","7.4",[27,28,29,30,31],"ai","content-negotiation","llm","markdown","rag","","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Fmarkdown-for-ai-agents.1.0.0.zip",null,"2026-03-15T15:16:48.613Z"]