Convert a Microsoft Word document to markdown
![Photo by Paolo Syiaco on Unsplash](/_next/image?url=%2Fimages%2Frandom-blog-covers%2Fpaolo-syiaco-Uc8wfh1tPUk-unsplash.jpg&w=1920&q=75)
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=./
That's it. Short one. Hope it helps!