Skip to content

Instantly share code, notes, and snippets.

@willwright82
Last active June 1, 2017 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willwright82/c7026e77553e5031a47de0e559502f78 to your computer and use it in GitHub Desktop.
Save willwright82/c7026e77553e5031a47de0e559502f78 to your computer and use it in GitHub Desktop.
Example pandoc conversions
# From docx to markdown
pandoc -s 'word-file.docx' --wrap=none --reference-links -t markdown -o 'markdown-file.md'
# From markdown to docx
pandoc 'markdown-file.md' -o 'word-file.docx'
# From web page to markdown:
pandoc -s -r html http://www.gnu.org/software/make/ -o 'example.md'
# From markdown to PDF:
pandoc 'example.md' --latex-engine=xelatex -o 'example.pdf'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment