Copy as Markdown Button

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

  1. Upload the plugin folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress Plugins screen directly.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Go to Settings > Copy as Markdown to configure where and how the button appears.

FAQ

How do I place the button manually?

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 selector shortcode 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.

Contributors

Changelog

1.0.0

  • Initial release.