...">

Add X-UA compliant rmarkdown html output

I am 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 the rmkardown HTML document. This is required for Internet Explorer as described in this MSDN article .

This answer doesn't work for me because the tag is added at the end <head>

and ignored. My HTML output has an inline script that is written before the X-UA compliant meta tag.

Is there a way to add the tag as the first one automatically in rmarkdown?

+3


source to share





All Articles