Add html_fragment format

But is it okay to have a <doctype> tag within another document that has
it's own <doctype> tag? (or a <doctype> tag inside e.g. an HTML table --
which is possible if the fragment ends up in a CMS.

Maybe we can fix the previewing problems separately?


On Mon, Jul 28, 2014 at 3:47 PM, Hadley Wickham <notifications@github.com>
wrote:

> In inst/templates/fragment.html:
>
> > @@ -0,0 +1,2 @@
> > +<meta charset="utf-8">
>
> Hmmm, I think that's valid html5, although that also requires <!doctype
> html>, see e.g.
> http://www.brucelawson.co.uk/2010/a-minimal-html5-document/.
>
> I added it because I was having preview problems without it.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/rstudio/rmarkdown/pull/192/files#r15485754>.
>