In this quick example, we’ll use PanDoc to convert a GitHub Flavored Markdown document into a Word .docx file suitable for printing, emailing, etc.
First, begin by obtaining PanDoc: [PanDoc Download]
Before using, be sure to read About PanDoc & CLI Options: [PanDoc User’s Guide]
Our CLI Quick-Start Example:
pandoc -f [format] -t [format] -o [out_file] [in_file]
-f [format] Input Format
-t [format] Output Format
-o [filename] Output Filename
Resulting GitHub MarkDown to DOCX (Microsoft Word) Conversion Command with PanDoc:
> pandoc -f gfm -t docx -o outfile.docx infile.md
PanDoc is Available for use in Windows, Linux, Mac OSX, and BSD!