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

Markdown for WordPress and bbPress

外掛說明

Markdown syntax allows you to write using an easy-to-read, easy-to-write plain text format.

Markdown for WordPress and bbPress (Markdown-WPBB) is based on the famed PHP Markdown Extra by Michel Fortin, in turn based on the original Perl version by John Gruber. All I did was make the same package work with bbPress too. ^^

安裝方式

WordPress

PHP Markdown works with WordPress, version 1.2 or later. PHP Markdown is already bundled with WordPress. Still, you can find here the latest version that may be newer than the latest WordPress version.

  1. To use Markdown-WPBB with WordPress, place the “markdown.php” file in the “plugins” folder.
    This folder is located inside “wp-content” at the root of your site:

    (site home)/wp-content/plugins/
    
  2. Activate the plugin with the administrative interface of WordPress. In the “Plugins” section
    you will now find “Markdown for WordPress and bbPress.” To activate the plugin, click on the “Activate” button on the same line as Markdown. Your entries will now be formatted with Markdown.

  3. To post Markdown content, you’ll first have to disable the “visual” editor in the User
    section of WordPress.

You can configure Markdown-WPBB to not apply to the comments on your WordPress weblog. See the “FAQ” section below.

bbPress

  1. To use Markdown-WPBB with bbPress, place the “markdown.php” file in the “plugins” folder.
    This folder is located inside “wp-content” at the root of your site:

    (site home)/my-plugins/
    

    If you don’t have a /my-plugins/ directory in your bbPress installaltion, create it on the
    root level of your bbPress installation.

  2. Activate the plugin with the administrative interface of bbPress. Find “Markdown for
    WordPress and bbPress” on the “Plugins” screen and hit “Activate.”

常見問題集

What if I do not need Markdown formatting for comments in WordPress?

Michel Fortin says: “By default, the Markdown plugin applies to both posts and comments on your WordPress weblog. To deactivate one or the other, edit the MARKDOWN_WP_POSTS or MARKDOWN_WP_COMMENTS definitions under the “WordPress settings” header at the start of the “markdown.php” file.”

What if I do not want the “Extra” features of Markdown Extra?

You can disable the “Extra” features by changing line 62 of markdown.php, replacing MarkdownExtra_Parser with Markdown_Parser. Voil.

For more information on the “Extra” features, check out Michel Fortin’s Markdown Extra page.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Markdown for WordPress and bbPress〉的開發相關工作。

參與者