這個外掛並未在最新的 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.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Markdown for WordPress and bbPress” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者