by Adam Alexandersson on WordPress.org
Export WordPress pages and posts to markdown files for AI chatbots with support for custom page builders and multilingual content.
Worddown is a powerful WordPress plugin that enables you to export your pages and posts to markdown files, making them perfect for integration with AI chatbots and other markdown-based systems.
Export your content directly from the command line:
wp worddown export
For large sites, use background mode:
wp worddown export --background
Access export functionality programmatically through REST API endpoints:
Customize your markdown output using WordPress filters:
add_filter('worddown_custom_html_content', function($content, $post_id, $post_type) {
if ($post_type === 'page') {
$content .= 'My custom HTML for page ' . $post_id . '';
}
return $content;
}, 10, 3);
For development instructions and advanced usage, please visit the plugin repository.
The plugin uses Vite for asset compilation. Development requirements: