Take the 2-minute tour ×
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
add comment

3 Answers 3

up vote 5 down vote accepted

You can also use pandoc:

pandoc -f markdown -t docx file.md -o file.docx

One advantage compared to textutil is that the output uses paragraph styles. You can also use styles from an existing file with --reference-docx file.docx.

share|improve this answer
add comment

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
add comment

iA Writer offers formatted Word (.docx) to Markdown import and export: iAWriter.com

Word to Markdown Import and Export

share|improve this answer
add comment

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.