Dan Rosenstark's WP-Plugin modification for occasional PHP markdown. Sometimes you want Markdown, sometimes you don't. Historical info: PHP Markdown is a port to PHP of the Markdown perl script by John Gruber; PHP Markdown Extra adds new features to Markdown and is maintained in a separate "extra" branch.
PHP
Pull request Compare This branch is 8 commits ahead, 8 commits behind michelf:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
License.text
Occasional Markdown Readme.text
OccasionalMarkdown.php
README.md

README.md

php-markdown

Dan Rosenstark's WP-Plugin modification for occasional PHP markdown. Sometimes you want Markdown, sometimes you don't.

This is almost entirely based on PHP Markdown. PHP Markdown is a port to PHP of the Markdown perl script by John Gruber; PHP Markdown Extra adds new features to Markdown and is maintained in a separate "extra" branch.

Use this Wordpress plugin by activating it and then wrap your markdown in <pre class="markdown"> and </pre> tags. This plugin also wraps your markdown in a div of class markdown for styling.

In addition, it handles this rare bug in Mobile Safari.

How do I install it?

Put all of these files -- the only one that matters is OccasionalMarkdown.php -- in a new plugin directory, e.g., your-wordpress-root/wp-content/plugins/occasional-markdown

Wordpress will pick it up automatically in the admin console!

How do I use it?

In any Blog Post, you can use these pre tags

<pre class="markdown">
**Markdown here!**
</pre>

**this is not markdown**

<pre class="markdown">
**More markdown here!**
</pre>

This will render only the bits in between the pre tags as markdown, so something kinda like this:

Markdown here!

**this is not markdown**

More markdown here!