The HTML would be easy. An h-entry for each chapter, revision history as h-event, author h-card.
Citations a bear. Martiin did half the works on the citation machine. Already has it spitting our correct html and we found an existing citation form field tool to use.
I think we can do it.