WP Post to Markdown - Classic Editor
WordPress post to markdown plugin
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/dlukt/wp-postmd-ce/archive/refs/heads/main.zipWordPress plugin that converts classic editor posts into markdown documents with alternate link meta tags for AI-friendly content consumption.
Features
- ✅ Automatically adds
<link rel="alternate" type="text/markdown">meta tags to published posts - ✅ Serves markdown versions of posts at URLs ending with
.md - ✅ Converts HTML content to clean, readable markdown
- ✅ Includes post metadata (author, date, categories, tags)
- ✅ Preserves formatting (headings, bold, italic, links, images, lists, code blocks)
- ✅ Compatible with WordPress 6.9 and later
- ✅ Lightweight with no external dependencies
How It Works
- When you publish a post, the plugin adds a link tag to the post's HTML head pointing to the markdown version
- Visitors (including AI crawlers) can access the markdown version by appending
.mdto the post slug - The markdown version includes full post metadata and properly formatted content
Example
If your post URL is: https://yourwebsite.com/my-awesome-post/
The markdown version will be available at: https://yourwebsite.com/my-awesome-post.md
And the HTML head will include:
<link rel="alternate" type="text/markdown" title="Markdown Version" href="https://yourwebsite.com/my-awesome-post.md">
Installation
- Download the plugin files
- Upload to
/wp-content/plugins/wp-postmd-cedirectory - Activate the plugin through the WordPress admin panel
- That's it! No configuration needed
Requirements
- WordPress 6.0 or higher (tested up to 6.9)
- PHP 7.4 or higher
License
MIT License - see LICENSE file for details
Author
Darko Luketic - GitHub