I like the Markdown editor whick is widely used (e.g. This site) and very convenient to use.
How to add a Markdown editor for WordPress? I tried some plugins and find they have their strengthens and disadvantages. Here are my requirements:
Compatible with my existing posts. They should still display well. I can accept minimum editing when it is need and should be rare case.
Editing existing posts should not mess things up. This is a short of some plugins: Wring new posts works well but editin old posts will turn them to a mess.
With a good Markdown editor. An editor helps a lot for Markdown esiting, especially for indenting code.
I ever tried different solutions/plugins. Finally, I settle with a solution by combining 2 plugins to write/edit posts in Markdown in WordPress:
for Markdown editing. It is a beautiful and easy to use Markdown editor for WordPress with a set of Markdown buttons. The basic function is editing. Saving the Markdown code of the post in WordPress and use php Markdown to render it when serving the post. Additionally, it can render the Markdown to HTML and HTML to Markdown which, I find, is very useful for editing old posts written in HTML. I like the undo and redo feature much too—we always make mistakes. Especially when rendering HTML to Markdown, we may mess old posts up and the undo feature will save us.
Some tools for Markdown:
Markdown syntax: http://daringfireball.net/projects/markdown/syntax