Skip to contents

Generate a Markdown header.

Usage

md_header(text, heading, extra = "", do_cat = TRUE)

Arguments

text

A character scalar: text of the header.

heading

A numeric scalar: level of the header, that is, the result will be "#" times heading.

extra

A character scalar: content to put after text, e.g. "{.tabset}" for tabbed heading.

do_cat

A logical scalar: if TRUE, print (using cat()) the result before returning.

Value

A character scalar.