Fixes #855 - albeit it’s a bit of a kluge. The internal format returned by `markdown.toHTMLTree()` isn’t sufficiently well documented for me to be confident that the new code is resilient to all the things that might be returned.
Internal links don't work yet. @natecain - have I included the node module in the right way?