qt5base-lts/tests/auto/gui/text
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
..
qabstracttextdocumentlayout Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qcssparser Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qfont BLACKLIST tst_qfont for Ubuntu 22.04 2022-06-20 17:06:20 +00:00
qfontcache Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qfontdatabase Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qfontmetrics Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qglyphrun BLACKLIST: tst_QGlyphRun::mixedScripts for Ubuntu 22.04 2022-06-20 20:06:20 +03:00
qinputcontrol Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qrawfont unblacklist passing tests 2022 2022-05-18 23:59:19 +02:00
qstatictext Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qsyntaxhighlighter Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtextblock Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtextcursor Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtextdocument Use CSS classes on html list items for checkbox support 2022-06-11 14:18:35 +00:00
qtextdocumentfragment Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtextdocumentlayout Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtextformat Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtextimagehandler Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtextlayout Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtextlist Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtextmarkdownimporter Avoid ending Markdown fenced code blocks with gratuitous blank lines 2022-05-20 00:49:18 +02:00
qtextmarkdownwriter Emit autolinks in QTextMarkdownWriter 2022-06-24 22:42:43 +02:00
qtextobject Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtextodfwriter Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtextpiecetable Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtextscriptengine Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtexttable Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qzip Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
CMakeLists.txt Activate tst_qtextdocument for Android 2022-02-24 14:34:33 +01:00