Convert Markdown to html using the Markdown.pl script and TextWrangler. I’m using v. 4.0 and the Unix Filters trick didn’t work for me. This did.
Get it here or from the Mac App store.
Putting the Perl Script in Place
Unzip the downloaded Markdown_1.0.1.zip file and copy Markdown.pl to the Text Filters folder.
~/Library/Application Support/Text Wrangler/Text Filters
You can use the Go => Go to Folder feature from the Finder to get to the hidden Library folder.
Making Magic Happen
Open TextWrangler and type in your Markdown code.
Convert your markdown to html by going to the menubar and selecting
Text => Apply Text Filter => Markdown
You now have a properly formatted html file to scp to your server, paste into your editor, or whatever cool things you are doing with markdown.
Note – Saving your file with a .text extension will give you some code highlighting features.
If you want to preview your Markdown code before filtering to html you can use Marked, the free nvalt (which I use for notes anyways) or any number of markdown tools on the webs. You can also use Mou. It’s in development and looks great.