Skip to content

Instantly share code, notes, and snippets.

Avatar
Expecto Patronum!

Nishan Chathuranga Wickramarathna nishanc

Expecto Patronum!
View GitHub Profile
@nishanc
nishanc / docx2md.md
Created Aug 12, 2019 — forked from aembleton/docx2md.md
Convert a Word Document into MD
View docx2md.md

Converting a Word Document to Markdown in One Move

The Problem

A lot of important government documents are created and saved in Microsoft Word (*.docx). But Microsoft Word is a proprietary format, and it's not really useful for presenting documents on the web. So, I wanted to find a way to convert a .docx file into markdown.

Installing Pandoc

On a mac you can use homebrew by running the command brew install pandoc.

The Solution