I'm trying to add the following tag
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
as the first one after <header>
in the output of rmkardown HTML document. This is necessary for Internet Explorer, as explained in this MSDN article.
This answer does not work for me because the tag is added at the end of <head>
and is ignored. My HTML output has some script embedded that is written before the X-UA-Compatible meta tag.
Is there a way to add the tag as the first one automatically in rmarkdown?