Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
12
rated 0 times [  12] [ 0]  / answers: 1 / hits: 3083  / 3 Years ago, thu, november 11, 2021, 10:27:37

I want to convert text written in Markdown to Rich Text on Ubuntu 13.04. I could not find any solution on the web, except for one Mac OS X script.



How can I do that on Ubuntu 13.04? Preferably in the browser.



P.S. I don't need it the other way, the text gets always written in Markdown and needs to get transformed to rich text.


More From » browser

 Answers
6

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.


[#30472] Saturday, November 13, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
doredtness

Total Points: 153
Total Questions: 113
Total Answers: 106

Location: South Georgia
Member since Fri, Nov 13, 2020
4 Years ago
;