Convert a Microsoft Word document to markdown

Darragh O'Riordan - Jul 28 '21 - - Dev Community

How to convert a Microsoft Word document like .doc or .docx to markdown.

# first install pandoc (use brew for macOS)
brew install pandoc

# then this is the command to convert the file
# the markdown type converts tables and the extract media will put all images in ./media
pandoc -f docx -t markdown my-document.docx -o my-markdown.md --extract-media=./
Enter fullscreen mode Exit fullscreen mode

That’s it. Short one. Hope it helps!

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player