View source: R/heading_vector.R
heading_vector | R Documentation |
This is just a convenience function to convert a vector of strings into markdown or HTML headings at a given 'depth'.
heading_vector(
x,
headingLevel = rock::opts$get("defaultHeadingLevel"),
output = "markdown",
cat = FALSE
)
x |
The vector. |
headingLevel |
The level of the heading; the default can be set
with e.g. |
output |
Whether to output to HTML (" |
cat |
Whether to cat (print) the heading or just invisibly return it. |
The heading, invisibly.
rock::heading_vector(c("Hello ", "World"), headingLevel=5);
### This produces: "\n\n##### Hello\n\n" and
### "\n\n##### World\n\n"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.