WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Markdown on Save Improved

Markdown + WordPress = writing bliss.

What made you retire this plugin?

Plain and simple: I get paid to write and maintain the Jetpack version. It gets used by a lot more people and gets regular bug fixes. There are even support people who will help you if you have problems!

If you liked MoSI, you'll love the Jetpack Markdown module. It's even easier to use - just enable it for a blog and every post is just converted to Markdown. There are tons of edge case fixes, improved GitHub-Flavoured syntax additions, better revision handling, and more.

How do I use Markdown syntax?

Please refer to this resource: PHP Markdown Extra.

How do I disable Markdown processing?

In most cases this should be unnecessary, since Markdown ignores existing HTML. But if Markdown for some reason disturbs your HTML when making an edit to a non-Markdown post, either check the "Disable Markdown formatting" checkbox, or put a <!--no-markdown--> HTML comment in your post somewhere (useful when using a mobile or 3rd party blogging app).

How do I enable Markdown processing on a custom post type?

Just add add_post_type_support( 'your-post-type', 'markdown-osi' ); to your functionality plugin functions.php file. Note that it must be hooked to the init action like this:

add_action( 'init', 'your_prefix_add_markdown_support' );
function your_prefix_add_markdown_support(){
    add_post_type_support( 'your-post-type', 'markdown-osi' );
}

Note that posts and pages are supported by default.

How do I convert an existing post to Markdown?

There is an experimental checkbox in the post editor to convert your old HTML post to Markdown using Markdownify. Check it at your own risk. Make sure you have revisions on or backups. If you're relying on specifically crafted HTML, it might get destroyed. But it might be cool.

What if I don't want to see that Markdown meta box at all?

I see you love Markdown greatly. You have chosen wisely. Add the following constant to your wp-config.php file:

define( 'SD_HIDE_MARKDOWN_BOX', true );

Note that you can still disable Markdown formatting with a <!--no-markdown--> HTML comment. HTML to Markdown conversion will be impossible.

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.

Requires: 3.4 or higher
Compatible up to: 3.8.3
Last Updated: 2014-3-18
Downloads: 17,649

Ratings

4 stars
4.6 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,2,2
100,1,1 100,1,1
0,1,0 100,1,1 100,4,4
100,1,1
0,1,0
100,1,1 100,1,1
100,1,1 100,4,4 100,1,1
100,2,2
100,1,1
100,2,2
100,1,1