Can I add an attribute to the main html tag with knitr?

Hi.

The html generated by knitr starts like this:

<html lang="en" xml:lang="en" >

However I'd like it to be like this:

<html lang="en" xml:lang="en" prefix="og: https://ogp.me/ns#">

Is that possible?

Are you refering to knitr only (knitr::knit()) or rmarkdown (rmarkdown::render()) ?

What is your input format ? How to you render your document ?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.