Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 846 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 846 Bytes

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>.

Dependencies

  • homebrew (for installing pandoc and node)
  • pandoc
  • node

Installation

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

Usage

node docxtohtml.js <filename.docx>

Notes

This is basically a mashup of the following.