Skip to content

Instantly share code, notes, and snippets.

View marcmauger's full-sized avatar

Marc Mauger marcmauger

  • Gainwell Technologies
View GitHub Profile
@plembo
plembo / pandocdocx2md.md
Last active November 15, 2024 18:14
Convert docx to markdown with pandoc

Convert Word documents to markdown with pandoc

I use pandoc to convert masses of Word documents to markdown. Still working on a generic script, but for now here's the "gist" of what I type into the terminal:

$ myfilename="example"
$ pandoc \
-t markdown_strict \
--extract-media='./attachments/$myfilename' \
$myfilename.docx \