Tell me more ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm interested in using a variation of Markdown for my work, but my target format is Word files (this is what my clients use, it's non-negotiable). Most implementations of Markdown would leave me with a circuitous route at best to get a Word file.

Perhaps more importantly, I'd want to be able to format things like footnotes/endnotes, which don't have any representation in Markdown or Multimarkdown, as far as I know.

Is there anything like this out there? Basically a flavor of Markdown oriented toward print rather than the screen?

share|improve this question

2 Answers

John Gruber, one of the two inventors of Markdown, uses footnotes fairly extensively on Daring Fireball; to see his raw (pre-Markdown) formatting, append .text to one of his urls, like this: http://daringfireball.net/2012/07/this_ipad_mini_thing.text.

As far as converting Markdown to RTF, textutil is your friend. You can pipe the output of the Markdown.pl command to textutil like so:

/usr/local/bin/Markdown.pl | /usr/bin/textutil -stdin -stdout -format html -convert rtf | pbcopy # or whatever else you want to do with it

Instead of piping to pbcopy (which puts the rich text on the clipboard), you could > it to a .rtf file, or whatever else your workflow dictates.

share|improve this answer
textutil is handy! – lhf Jul 20 '12 at 22:36

You can also convert Markdown directly to doc with pandoc: pandoc -f markdown -t docx http://daringfireball.net/2012/07/this_ipad_mini_thing.text -o ~/Desktop/test.docx. The output will use paragraph styles so it's easier to reformat than RTF:

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.