This is just a convenience function to convert a vector of strings into markdown or HTML headings at a given 'depth'.
Usage
heading_vector(
x,
headingLevel = rock::opts$get("defaultHeadingLevel"),
output = "markdown",
cat = FALSE
)
Examples
rock::heading_vector(c("Hello ", "World"), headingLevel=5);
### This produces: "\n\n##### Hello\n\n" and
### "\n\n##### World\n\n"