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:

    1. ```{=html}
    2. <p>Any <strong>raw</strong> HTML content works here.
    3. For example, here is a Youtube video:</p>
    4. <iframe width="100%" height="400"
    5. src="https://www.youtube.com/embed/s3JldKoA0zw?rel=0"
    6. frameborder="0" allow="autoplay; encrypted-media"
    7. allowfullscreen></iframe>
    8. ```

    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:

    1. ```{r}
    2. knitr::pandoc_to()
    3. ```

    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.