Markdown supports header levels 1-7 (<H1>-<H7>).

isHeaderLevel(x, .xname = getNameInParent(x))

Arguments

x

Object.

.xname

Name of object defined in x. Not intended to be used directly.

Value

TRUE on success; FALSE on failure, with cause set.

Note

Updated 2019-08-10.

Examples

## TRUE ==== isHeaderLevel(1)
#> [1] TRUE
## FALSE ==== isHeaderLevel(0)
#> [1] FALSE #> Cause: '0' is not a valid Markdown header. #> Markdown supports header levels 1-7.