Skip to content

Instantly share code, notes, and snippets.

@dorinstanciu
dorinstanciu / pandocdocx2md.md
Created March 30, 2025 21:50 — forked from plembo/pandocdocx2md.md
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 \