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

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

Arguments

x

Object.

.xname

Not intended to be used directly.

Value

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

Examples

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