pandoc.header.return: Create header

View source: R/pandoc.R

pandoc.header.returnR Documentation

Create header

Description

Creates a (Pandoc's) markdown style header with given level.

Usage

pandoc.header.return(x, level = 1, style = c("atx", "setext"))

Arguments

x

character vector

level

integer

style

atx or setext type of heading

Value

By default this function outputs (see: cat) the result. If you would want to catch the result instead, then call the function ending in .return.

References

John MacFarlane (2012): _Pandoc User's Guide_. https://johnmacfarlane.net/pandoc/README.html

Examples

pandoc.header('Foo!', 4)
pandoc.header('Foo!', 2, 'setext')
pandoc.header('Foo **bar**!', 1, 'setext')

pander documentation built on March 18, 2022, 6:39 p.m.