Description
Copy as Markdown Button lets your visitors copy any post or page content as clean Markdown with a single click.
Features:
- Auto-injects the button before or after the content on selected post types
- Shortcode
[copy_as_markdown]for manual placement in posts, pages, or widgets - Gutenberg block available in the Widgets category
- Customisable button text, size, colours, and corner radius
- Option to include the post title as a Markdown H1
- Custom CSS selector support to target specific page elements
- Exclude elements from the Markdown output via CSS selectors
Blocks
This plugin provides 1 block.
- Copy as Markdown Adds a button that copies the page content to the clipboard as Markdown.
Installation
- Upload the plugin folder to the
/wp-content/plugins/directory, or install the plugin through the WordPress Plugins screen directly. - Activate the plugin through the Plugins screen in WordPress.
- Go to Settings > Copy as Markdown to configure where and how the button appears.
FAQ
-
Use the shortcode
[copy_as_markdown]in any post, page, or widget, or add the Copy as Markdown block in the Gutenberg block editor. -
Can I copy only part of the page?
-
Yes. Use the Content Element Selector setting (or the
selectorshortcode attribute) to target a specific CSS element. -
Does it work with custom post types?
-
Yes. Any public post type is listed in the Display settings so you can enable auto-injection for it.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Copy as Markdown Button” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Copy as Markdown Button” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- Initial release.