I have written a small toy to prepare articles for habrahabr using markdown.
I guess it will be buggy like hell since it is the first version, yet still…
To use it it you have to have NodeJS and installed as well as PATH variable set correctly (node installer does this all for you, just in case)
npm install -g markdown-habr
And it should be available now in your system. You should be able to just do something like