get the headings out of given strings

get_heading(pattern = "^#+ ", text)

Arguments

pattern

The definition of the headings

text

the given strings

Value

integer. the index of the headings in the given strings.