qt5base-lts/tests/auto/gui
Shawn Rutledge 846b314aaf Emit autolinks in QTextMarkdownWriter
When a markdown document contains a "naked" URL, or an angle-bracketed
<URL>, md4c recognizes it, and we set the AnchorHref charfmt property.
There's no need to expand it into the [text](url) form if the text is
the same as the url, there is no tooltip, and the url is valid.
QTextMarkdownWriter now writes a CommonMark "autolink" in that case:
https://spec.commonmark.org/0.30/#autolinks

[ChangeLog][QtGui][Text] QTextMarkdownWriter now writes an autolink
whenever a hyperlink has no custom text and no tooltip, including
when the document was parsed from Markdown containing a naked URL.

Pick-to: 6.4
Fixes: QTBUG-94713
Change-Id: I432db8499c62e1e0b1e913bfd8ef2147e3c2bb2a
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
2022-06-24 22:42:43 +02:00
..
image Fix typos in docs and comments 2022-06-15 21:31:02 +02:00
itemmodels Use QAbstractItemModelTester or QFileSystemModel 2022-05-18 12:58:06 +02:00
kernel Update window geometry when QWindow::m{in|ax}imumSize is updated 2022-06-13 09:19:17 +02:00
math3d Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
painting unblacklist passing tests 2022 2022-06-23 01:36:01 +02:00
platform Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengl Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglconfig Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qvulkan Work around lavapipe bug in tst_qvulkan 2022-06-16 17:29:36 +00:00
rhi Use consistent ordering in QShader 2022-06-14 14:58:09 +02:00
text Emit autolinks in QTextMarkdownWriter 2022-06-24 22:42:43 +02:00
util Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
CMakeLists.txt Move QtX11Extras into QtGui as private API 2021-05-10 21:19:46 +00:00