The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join

Copy as Markdown Button

Copy as Markdown Button banner
1 rating
5.0
Last updated
3 months ago
Version
1.0.3
Tested up to
WP 7.1.5

About this plugin

Copy as Markdown Button lets your visitors copy any post or page content as clean, well-structured Markdown with a single click. It handles everything from headings and tables to code blocks and nested lists – no extra tools or dependencies required.

Placement & Auto-injection

  • Automatically injects the button before or after the content on any combination of post types (posts, pages, and custom post types)
  • Shortcode [copy_as_markdown] for manual placement in any post, page, or widget
  • Gutenberg block available in the Widgets category – place it anywhere in the block editor with per-block overrides for button text, size, and content selector
  • Exclude specific posts or pages from auto-injection by entering their IDs – shortcode and block placements are unaffected

Button Customisation

  • Choose button size: Small, Medium, or Large
  • Set custom background, text, and hover colours via colour pickers
  • Adjust corner radius from 0 px (square) to 50 px (pill)
  • Show or hide the copy icon alongside the button label
  • Customise the button label (default: “Copy as Markdown”) and the success confirmation text (default: “Copied!”)
  • Live preview in the settings panel updates instantly as you change style options

Content Control

  • Optionally prepend the post title as a Markdown H1 heading
  • Custom CSS selector to target a specific page element instead of the auto-detected content area
  • Exclude any elements from the Markdown output using CSS selectors (one per line) – useful for stripping ads, share buttons, comment sections, and related posts
  • Per-shortcode overrides for button text, size, content selector, and download button visibility

Download Button

  • Optional dropdown “Download as .md” button that saves the converted Markdown as a .md file directly from the browser, named after the post slug
  • Appears alongside the copy button in a split-button dropdown
  • Can be force-enabled or force-disabled per shortcode instance using the download attribute

Markdown URL Endpoint

  • Enable a .md.txt URL endpoint so any post or page can be viewed as plain-text Markdown by appending .md.txt to its URL (e.g. yoursite.com/your-post-slug.md.txt)
  • The server converts the post HTML to Markdown and serves it as text/plain – useful for programmatic access, LLM ingestion, and content pipelines
  • Works with Elementor pages by using Elementor’s own renderer when available
  • Optional “View as Markdown” link in the button dropdown opens the plain-text endpoint in a new tab
  • Customisable link label for the “View as Markdown” item

HTML-to-Markdown Conversion

The converter handles a wide range of HTML elements cleanly:

  • Headings (H1–H6), paragraphs, line breaks, and horizontal rules
  • Bold (**), italic (*), and strikethrough (~~) inline formatting
  • Hyperlinks with optional title attributes; images with alt text and titles
  • Fenced code blocks with language detection from the language-* CSS class
  • Inline code with backtick escaping
  • Blockquotes with proper > prefixing on every line
  • Ordered and unordered lists with full nested list support
  • Tables converted to GitHub-Flavored Markdown pipe tables
  • Figures with italicised captions
  • YouTube iframe embeds converted to [Video](url) Markdown links
  • Scripts, styles, navigation, and form elements are automatically stripped

Accessibility & Performance

  • ARIA labels, role="status" live region for screen-reader announcements after copy
  • Keyboard-navigable dropdown with aria-expanded and role="menu" semantics
  • Frontend CSS and JavaScript are only loaded on pages where the button will actually appear

Screenshots

Analytics

Live from WordPress.org, refreshed daily. Last refresh Nov 30, 2026.

  • Passes every health check below.
3/3

Health checks

Everything a careful site owner looks at before installing.

  • Actively maintained Last release 3 months ago
  • Tested with current WordPress Tested up to 7.1.5
  • Support questions answered Nothing open in the last two months
  • Well rated Only 1 rating so far
Active installs
Fewer than 10 WordPress.org rounds this down
This week
40 downloads +18% vs the week before
Last 30 days
155 downloads 5 a day, typically
All time
746 downloads On WordPress.org since 2026
Downloads per week Every update counts as a download on WordPress.org, so release weeks spike.
Latest week
40
Typical week
18
Peak
49 Week of Oct 19
View as table
WeekDownloads
Week of Nov 2340
Week of Nov 1634
Week of Nov 934
Week of Nov 235
Week of Oct 2642
Week of Oct 1949
Week of Oct 1243
Week of Oct 541
Week of Sep 2839
Week of Sep 2114
Week of Sep 1412
Week of Sep 712
Week of Aug 3118
Week of Aug 2418
Week of Aug 1717
Week of Aug 1015
Week of Aug 313
Week of Jul 2726
Week of Jul 2039
Week of Jul 1316
Week of Jul 613
Week of Jun 2913
Week of Jun 2213
Where it stands Rank among the plugins WPFolks tracks every day.

Not ranked yet. Install, download and rating ranks cover the 5,000 most popular plugins on WordPress.org, and Trending needs about 100 downloads on a typical day.

Active installs over time Recorded by WPFolks every day since Oct 14, 2026.

Reviews

5.0 1 rating on WordPress.org
  • 5 1
  • 4 0
  • 3 0
  • 2 0
  • 1 0

From folks on WPFolks

No reviews from folks yet. Used it? Be the first to say how it went.

Log in to leave a review

Latest on WordPress.org

Proudly supported by