Creates a (Pandoc's) markdown style header with given level.
pandoc.header.return(x, level = 1, style = c("atx", "setext"))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.
John MacFarlane (2012): _Pandoc User's Guide_. https://johnmacfarlane.net/pandoc/README.html
pandoc.header('Foo!', 4)
#>
#> #### Foo!
pandoc.header('Foo!', 2, 'setext')
#>
#> Foo!
#> ----
pandoc.header('Foo **bar**!', 1, 'setext')
#>
#> Foo **bar**!
#> ============