這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Markdown on Save

外掛說明

This plugin allows you to compose content in Markdown on a per-item basis. The markdown version is stored separately (in the post_content_filtered column), so you can deactivate this plugin and your posts won’t spew out Markdown, because HTML is stored in the post_content, just like normal. This is also much faster than doing on-the-fly Markdown conversion on every page load. It’s only done once! When you re-edit the post, the markdown version is swapped into the editor for you to edit. If something external updates the post content, you’ll lose the Markdown version.

Note: this plugin assumes you’re using the Classic editor.

螢幕擷圖

  • The Markdown logo you click to designate a post as containing Markdown. This is the only UI for the plugin!

安裝方式

  1. Upload the markdown-on-save folder to your /wp-content/plugins/ directory

  2. Activate the “Markdown On Save” plugin in your WordPress administration interface

  3. Create a new post with Markdown, and click the Markdown logo in the publish metabox (see screenshot).

  4. Done! Now that post can be edited using Markdown, but will save as processed HTML on the backend.

常見問題集

How do I use Markdown syntax?

Please refer to this resource: [http://michelf.com/projects/php-markdown/extra/](PHP Markdown Extra).

What happens if I click the Markdown logo again?

Your post will no longer be interpreted as Markdown, you will be returned to the normal editing experience.

What happens if I decide I don’t want this plugin anymore?

Just deactivate it. The Markdown version is stored separately, so without the plugin, you’ll just revert to editing the HTML version.

使用者評論

2025 年 4 月 24 日
You have the advantage of using Markdown rather than the horrible Gutenberg block system while also being able to let someone else edit in the Classic Editor.
閱讀全部 1 則使用者評論

參與者及開發者

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

參與者

將〈Markdown on Save〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.3.1

  • Use the “extra” version of Markdown with all the features

1.3

  • Modern PHP syntax
  • Better accessibility
  • Modern Markdown library using Composer

1.2.1

  • Play better with other plugins that also use PHP Markdown Extra

1.2

  • Update PHP Markdown Extra to 1.2.6
  • Keep track of which revisions were Markdown and which were not
  • Restore old revisions properly, including Markdown status
  • Fix a slashing bug that would prevent link titles from parsing
  • Fix a bug related to autosave
  • Use Dustin Curtis’ Markdown logo as a toggle
  • Work on the WP-specific XML-RPC API in addition to the generic API

1.1.5

  • Fix a stripslashes() error

1.1.4

  • XML-RPC support (use to enable Markdown mode)

1.1.3

  • Disables the Visual Editor if the post being edited is in Markdown mode

1.1.2

  • Fix a slashes bug which would cause link titles to fail
  • Enable Markdown when posting remotely by using anywhere in post content

1.1.1

  • Fix bug which made the metabox show up on the Dashboard

1.1

  • Some extra nonce protection
  • Enable the plugin for all content types, not just posts

1.0

  • First public version
  • Fixed a regex bug that could break current menu highlighting. props skarab