Redo Markdown generation as ERb

ERb is probably easier to work with than just a heredoc and string
interpolation.