hast utility to get the rank (or depth, level) of headings
github.com/syntax-tree/hast-util-heading-rank
syntax-tree/hast-util-heading-rank