Generate a Markdown header.
Arguments
- text
A character scalar: text of the header.
- heading
A numeric scalar: level of the header, that is, the result will be
"#"
timesheading
.- extra
A character scalar: content to put after
text
, e.g."{.tabset}"
for tabbed heading.- do_cat
A logical scalar: if
TRUE
, print (usingcat()
) the result before returning.