Use HTML pipeline

This uses [html-pipeline](https://github.com/jch/html-pipeline/), makes it easier to extend with more capabilities later.

Could use some refactoring, but just want to get this out of the door at the moment.