Debian Codegraph @

man/raw_block.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/utils.R
3 \name{raw_block}
4 \alias{raw_block}
5 \alias{raw_latex}
6 \alias{raw_html}
7 \title{Mark character strings as raw blocks in R Markdown}
8 \usage{
9 raw_block(x, type = "latex", ...)
10
11 raw_latex(x, ...)
12
13 raw_html(x, ...)
14 }
15 \arguments{
16 \item{x}{The character vector to be protected.}
17
18 \item{type}{The type of raw blocks (i.e., the Pandoc output format). If you
19 are not sure about the Pandoc output format of your document, insert a code
20 chunk \code{knitr:::pandoc_to()} and see what it returns after the document
21 is compiled.}
22
23 \item{...}{Arguments to be passed to \code{\link{asis_output}()}.}
24 }
25 \description{
26 Wraps content in a raw attribute block, which protects it from being escaped
27 by Pandoc. See \url{https://pandoc.org/MANUAL.html#generic-raw-attribute}.
28 Functions \code{raw_latex()} and \code{raw_html()} are shorthands of
29 \code{raw_block(x, 'latex')} and \code{raw_block(x, 'html')}, respectively.
30 }
31 \examples{
32 knitr::raw_latex("\\\\emph{some text}")
33 }