9.5 Write raw content (*)

The technique introduced in Section 6.11 is actually a general technique. You can protect any complex raw content in Markdown by specifying the content as “raw.” For example, if you want to write raw HTML content, you can use the attribute =html:

<p>Any <strong>raw</strong> HTML content works here.
For example, here is a Youtube video:</p>

<iframe width="100%" height="400"
  frameborder="0" allow="autoplay; encrypted-media"

The attribute name is the Pandoc output format name. If you want to know the output format name, you may check the output of the code chunk below inside an Rmd document:


Please note that raw content is only visible to a specific output format. For example, raw LaTeX content will be ignored when the output format is HTML.