I am tired of the tinymce editor in wordpress and I really love the stackoverflow editor which allows me to write with markdown grammar. So I want to write blog with markdown in wordpress.

Now I am using this plugin in my wordpress:

Plugin Name: Markdown QuickTags
Plugin URI: http://brettterpstra.com/code/markdown-quicktags
Description: Replaces the WordPress QuickTags with Markdown-compatible ones
Version: 0.8.2
Author: Brett Terpstra
Author URI: http://brettterpstra.com
License: GPLv2

It replaces the original editor of wordpress and provides a light-weight interface for me to write with markdown. However, compared with Stackoverflow's editor, it lacks:

  1. The SO editor have auto syntax highlighting. I don't need to specify which kind of language I am typing in. The Markdown QuickTags plugin do not provide the ability for syntax highlighting, and plugins like Wp-markdown-syntax-highlight requires me to manually add a tag to indicate the type of language. Also, I have no idea if the two plugins could work together.

  2. The SO editor provides live preview, which is the most cool part of SO.

Is there any wordpress plugin(s), or combination of plugins that can meet my requirement? I personally could do some development but I know little about php and js, so it's really hard for me to write one from scratch (or from the two plugins I mentioned above).

Point 1 above is the most important. And I don't care if the plugin auto-converts markdown to html, or requires me to click a button like "render" before publishing.


Welcome to WordPress stack exchange! Just yesterday I created WP-Markdown, which enables Markdown on your posts.

It also provides the same interface as this website (the toolbar, and live preview) - however, currently only for comments and bbPress forums (if enabled). That said, (since it would be straightforward to do), I am planning on adding an option to enable a 'back-end' live preview. Hope that helps.

Edit: Since 1.1 this now includes an option to enable the toolbar and preview for the post editor, and so now actually does what the OP asked for :D.

| improve this answer | |
  • I am using WP-Markdown now. It's really good. I look forward to the stackoverflow style interface for wp back-end. One thing to ask: how does the article with markdown stored in the db? Is it rendered to HTML when showing the post, or on saving the post? – coolcfan Mar 8 '12 at 2:39
  • It's saved to db as HTML so you can deactivate without any problems. – Stephen Harris Mar 8 '12 at 8:38
  • Nice! And I can always see markdown code in the editor when I want to edit the post. So it does some conversion from HTML to Markdown when I edit? Also here is my test with the plugin: dante.im/test-markdown-2 It works well with WP's Twenty-Eleven. – coolcfan Mar 9 '12 at 1:57
  • @coolcfan See updated answer – Stephen Harris Mar 13 '12 at 20:51
  • 1
    @AnthonyAlberto Change the return line of function loadPrettify() to return is_singular($savedtypes) || is_home(); may be one solution. The function is in WP-Markdown.php. Don't know the line number cuz' I edited it in WP's admin page. – coolcfan Dec 18 '12 at 8:49

Not the answer you're looking for? Browse other questions tagged or ask your own question.