转化为docx
pandoc -f markdown -t docx collection.markdown -o api.docx
转化为html
pandoc collection.markdown -o collection.html -s
通过pandoc,转化markdown为docx和html
原文:http://www.cnblogs.com/codeaaa/p/7649717.html