How to convert markdown to rich text (rtf) in Ubuntu 13.04?

Solution 1:

One alternative is http://johnmacfarlane.net/pandoc/ which is in the repos,

sudo apt-get install pandoc

Then you can take your markdown file and convert it to rtf, or a variety of other formats with,

pandoc -s -f markdown -t rtf -o file.rtf file.txt

The -s switch is for standalone, so that it doesn't just create an rtf fragment. There are also a variety of other useful switches such as -S for smart quotes. I use it all the time to create epub and pdf files.

It would also be a good idea to check out the documentation on their site, since the pandoc markdown format supports several extensions.