Skip to content

Instantly share code, notes, and snippets.

@wildone
Last active May 11, 2020 12:33
Show Gist options
  • Select an option

  • Save wildone/e4cadf601ccde5dfa97e17ea7b303908 to your computer and use it in GitHub Desktop.

Select an option

Save wildone/e4cadf601ccde5dfa97e17ea7b303908 to your computer and use it in GitHub Desktop.
If you have a DOCX with images and would like to convert it to MD to publish somewhere run this command in the folder with your document. This will mount the folder into docker container, convert document and extract all images into subfolder.
docker run -v ${pwd}:/data pandoc/core -o test2.md --extract-media=./test2/ test2.docx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment