This is a bare-bones proof-of-concept demo of conversion from a document saved from Word as "Web Page" to cleaner HTML, while preserving (or transforming) selected features of the original.
To try it out, clone this repository, enter the top-level directory, install the dependencies, and run the code to build the book as an HTML file.
git clone https://github.com/fbennett/indigo-book-converter.git
cd indigo-book-converter
npm install
node .\doitall.js