QDoc: Auto-open paragraph for Link atoms outside block context


ContentBuilder silently dropped Link atoms that arrived without an
enclosing paragraph block. This caused \sa (see-also) entries to lose
their link structure entirely, since alsoList atom chains start with a
bare Link atom rather than a ParaLeft-wrapped paragraph.

When a Link atom arrives with no open block, ContentBuilder now opens a
paragraph automatically. This gives alsoList entries — and any other
orphan link atoms — the same treatment as regular paragraph content,
producing properly structured link inlines that flow through the
standard resolution and rendering pipeline.

NavLink is handled the same way defensively, though in practice it is
expected to already appear within block context.

Fixes: QTBUG-145735
Change-Id: I7ba592dd4a31622079b46d52d29a943a423af404
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit33d98d0c9922c7a807f31ea8d9b0bb97aaec06f6
parent7e9f512a61e697540943d4658f68c6a387491aa7
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeFri, 10 Apr 2026 13:59:06 +0200