Add html_fragment format

For example, while previewing in RStudio we know the output format so in the case of html_fragment we could amend what's served back to the previewer so that it constitutes a fully valid HTML5 document.