close
Image
Image

Simple Export to Markdown

外掛說明

Simple Export to Markdown adds a small panel inside the WordPress block editor. With one click, editors can download the current post or page as a .md file or copy the generated Markdown to the clipboard.

The plugin uses the bundled Turndown library to convert serialized Gutenberg blocks in the browser. It does not create server-side export files, make external API calls, add REST/AJAX endpoints, or store exported content.

Features

  • Export Gutenberg content directly to Markdown.
  • Download .md files or copy Markdown to the clipboard.
  • Auto-generated YAML front matter for title, slug, date, categories, and tags.
  • Uses the edited post state, including unsaved title, slug, date, category, tag, and block changes.
  • Loads only in the block editor for users with edit_posts.
  • PHP and JavaScript translations are loaded from the plugin language files.

Requirements

  • WordPress 6.0 or newer.
  • PHP 7.4 or newer.
  • Active Gutenberg/block editor.

License

This plugin is open-source software licensed under the GPLv2 or later.

螢幕擷圖

安裝方式

  1. Upload the plugin folder to /wp-content/plugins/, or install it through the WordPress Plugins screen.
  2. Activate the plugin through the “Plugins” menu in WordPress.
  3. Open any post or page in the block editor.
  4. Find the Export to Markdown panel in the editor sidebar.
  5. Click Download .md or Copy Markdown.

常見問題集

Does this work in the Classic Editor?

No. The plugin is designed for the WordPress block editor.

Does it save files on the server?

No. Conversion, download, and clipboard copy happen locally in the browser.

Can it export custom blocks?

Custom blocks are serialized by WordPress before Turndown converts the resulting HTML to Markdown.

Why are the JavaScript translation files named with the script handle?

PHP translations use simple-export-md-{locale}.mo. JavaScript translations use the simple-export-md-{locale}-simple-export-md.json pattern so translations work for both the source and minified editor scripts.

How should release builds be verified?

Run npm ci, npm run build, npm test, npm audit --audit-level=low, and php -l simple-export-md.php. The minified editor script should only be committed as the Terser output from npm run build.

使用者評論

Image
2026 年 5 月 20 日
Works as expected. Simple and clean.Would be great to see a bulk action added for exporting all posts at once as a zip file.
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Simple Export to Markdown〉的開發相關工作。

參與者

〈Simple Export to Markdown〉外掛目前已有 2 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Simple Export to Markdown〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.1.3

  • Hardened editor asset loading.
  • Fixed JavaScript translation file names.
  • Improved Markdown export reliability and filename sanitization.