Check Markdown / Quarto / HTML heading hierarchy and labels
Source:R/a11y_check_headings.R
a11y_check_headings.RdScans a file for three heading defects:
(a) skipped heading levels (e.g., ## followed by ####),
(b) empty headings,
(c) non-descriptive headings (text shorter than min_chars).
These violate WCAG 2.1 Success Criteria 1.3.1 (Info and Relationships),
2.4.6 (Headings and Labels), and 2.4.10 (Section Headings).