rmd_headings | R Documentation |
RStudio add-ins to format text as R Markdown headings and to remove this formatting.
rmd_heading_1(context = rs_get_context())
rmd_heading_2(context = rs_get_context())
rmd_heading_3(context = rs_get_context())
rmd_heading_4(context = rs_get_context())
rmd_heading_5(context = rs_get_context())
rmd_heading_6(context = rs_get_context())
rmd_heading_1_title(context = rs_get_context())
rmd_heading_2_subtitle(context = rs_get_context())
rmd_heading_remove(
style = c("auto", "both", "hash", "underline"),
context = rs_get_context()
)
context |
(class |
style |
("auto", "both", "hash", "underline") indicates which style of heading to remove:
|
Function rmd_heading_remove()
removes heading formatting:
either hash-symbol-style headings (i.e., remove leading hash symbols #
and spaces), or
underline-style headings in the first selected row.
The other functions, which name beginns with rmd_heading_
, at first
apply rmd_heading_remove()
to remove heading style (leading hash
symbols and underline) and then format the first selected row as a heading
of an appropriate level.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.