This script is meant to take a .docx downloaded from google docs and convert it to a nicely formatted .html file. It assumes the google docs file is made almost exclusively with the tags <ul>
and <li>
.
- homebrew (for installing pandoc and node)
- pandoc
- node
Using Homebrew you can instal node and pandoc using the following.
1. Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2. Pandoc
brew install pandoc
3. Node
brew install node
node docxtohtml.js <filename.docx>
This is basically a mashup of the following.