QDoc: Support heading levels 5 and 6 in Markdown content blocks


Section headings in authored documentation can nest up to six levels.
The Markdown content-block partial's nested section-heading path and
the member-detail partial's section-heading paths each stop matching
at level four, so any heading deeper than \section2 falls through
the conditional and emits as plain text with no leading hash
characters. Readers see "Advanced Options" where they should see
"##### Advanced Options", losing the structural cue for a
fifth-level heading that the HTML output renders correctly.

The three Markdown section-heading paths now extend the level
match to six, matching the top-level content-block path that
already handled the full range and the HTML partials that never
had the truncation. Deeply nested authored documentation renders
with the same heading depth across both output formats.

Task-number: QTBUG-145915
Change-Id: I88c650f68f1d2e41139305d0fe378a2911bfe6a8
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commitaa7c682713b093927e0b117a9aaa0aecb22ac095
parentaf18d8f9568878502c29a649dbc806ee877b563c
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeWed, 22 Apr 2026 07:48:12 +0000