=== Copy as Markdown Button ===
Contributors: josevarghese
Tags: markdown, copy, button, content, export
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Adds a button to copy post/page content as Markdown. Supports shortcode, Gutenberg block, and auto-injection into selected content types.

== 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

== 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.

== Frequently Asked Questions ==

= 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.

== Screenshots ==

1. Settings page - Display tab.
2. Settings page - Style tab with live preview.
3. Button rendered on the front end.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
