Invoke [pandoc](http://johnmacfarlane.net/pandoc/) from any text editor with the opened file as input.