QDoc: Separate the markdown breadcrumb from the page contents
The Markdown navigation header emits the breadcrumb chain and
the bold "Contents" label on adjacent lines, with no blank line
between them. Markdown readers see the trailing item of the
breadcrumb run directly into the "Contents" label, and engines
that don't recognize an unspaced heading fold both into a single
paragraph rather than treating "Contents" as a heading and the
list that follows as its body.
A blank line now closes the breadcrumb so Markdown sees a
paragraph break between it and the contents block. Pages without
a breadcrumb continue to begin with the contents block or the
page title, with no leading whitespace introduced.
Task-number: QTBUG-146603
Change-Id: I5db555d4e486e806f7e8a1a03286b6174336981b
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
| commit | ca8ffbc3b5cef82f93afbdb3018a28677f40ebc9 |
| parent | 8f73cb6f13ed3c67150f289554dbb04bafa9a03b |
| author | Paul Wicking <paul.wicking@qt.io> |
| committer | Paul Wicking <paul.wicking@qt.io> |
| commit time | Thu, 7 May 2026 09:20:47 +0000 |
- M src/qdoc/qdoc/src/qdoc/templates/partials/md/nav.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/cppref_validation/expected/markdown/qcoapclient.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/cppref_validation/expected/markdown/qcoapmessage.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/cppref_validation/expected/markdown/qcoapoption.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/cppref_validation/expected/markdown/qcoapprivatekey.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/cppref_validation/expected/markdown/qcoapreply.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/cppref_validation/expected/markdown/qcoaprequest.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/cppref_validation/expected/markdown/qcoapresource.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/cppref_validation/expected/markdown/qcoapresourcediscoveryreply.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/cppref_validation/expected/markdown/qcoapsecurityconfiguration.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/cppref_validation/expected/markdown/qtcoap-quickmulticastclient-example.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/cppref_validation/expected/markdown/qtcoap-quicksecureclient-example.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/cppref_validation/expected/markdown/qtcoap-simplecoapclient-example.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/markdown/cpp-classes.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/markdown/navigation-landing.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/markdown/navwidget.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/markdown/qml-navitem.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/markdown/qml-types.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/markdown/subpage.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/navigation/expected/markdown/testnavigation-module.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/markdown/qml-qt-labs-lottieqt-lottieanimation.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/markdown/qml-qt-labs-lottieqt-vectorimagehelpers-layeritem.md