Work around html-truncate bug which closes <br> and similar elements with end tags

By rendering markdown to xhtml instead of html