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:

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

<iframe width="100%" height="400"
  src="https://www.youtube.com/embed/s3JldKoA0zw?rel=0"
  frameborder="0" allow="autoplay; encrypted-media"
  allowfullscreen></iframe>
```

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:

```{r}
knitr::pandoc_to()
```

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.