qt5base-lts/tests/auto/gui/text/qtextmarkdownwriter/data
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
..
blockquotes.md Emit autolinks in QTextMarkdownWriter 2022-06-24 22:42:43 +02:00
example.md Fix typos in docs and comments 2022-06-15 21:31:02 +02:00
headingsAndLists.md QTextMarkdownImporter: don't keep heading level on following list item 2019-05-24 15:37:05 +02:00
links.md Emit autolinks in QTextMarkdownWriter 2022-06-24 22:42:43 +02:00
listsAndCodeBlocks.md Markdown writer: indent fence consistent with code block 2021-10-14 19:57:09 +02:00
wordWrap.md QTextMarkdownWriter: fix some bad cases with word wrap 2019-05-24 15:37:05 +02:00