.text-theme
files (Mac OS X)..md
filename extension by default.mdown
, mdml
, mdtext
, mdtxt
, mdwn
, mkd
, mkdn
. .md
and .markdown
filename extensions. .text
, .md
, .markdown
) open via Texts parser by default. pandoc --version
markdown.md
, to a Microsoft Word docx file. The conversion command is as follows:pandoc -s -f markdown -t docx markdown.md -o markdown.docx
-s
means we want a “standalone” file, that is, a complete file and not just a piece of a file. The -f
means “from,” meaning we want to convert from Markdown (the next item) to (the -t
) a docx file (Starting to get it?). Next is the name of the input file (markdown.md
), followed by -o
for “output,” then the name we want to give to the converted file (markdown.docx
).markdown.docx
, which if opened in Microsoft Word should look like a bona fide Word file, with proper formatting as created in the original, plain-text Markdown file.pandoc -s -f markdown markdown.md -o markdown.pdf