update HTML generation per http://www.phabricator.com/docs/phabricator/article/Rendering_HTML.html