qt6-bb10/tests/auto/gui/text
Shawn Rutledge ca4774131b QTextMarkdownWriter: escape special characters (line or word prefix)
Try to avoid writing anything that the parser would misinterpret.
Escape pre-existing backslashes, but not those that are already escaped.
Optimize maybeEscapeFirstChar() slightly and apply it to every line
of output (except in code blocks), not only to new lines created by
word-wrapping.

Since it would be hard to do this without using regular expressions,
the markdown writer feature now depends on the regex feature.

Fixes: QTBUG-96051
Fixes: QTBUG-122083
Pick-to: 6.7
Change-Id: I8d95366501fd31441829081c668f11a3a3a23fe2
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-03-04 21:03:51 -07:00
..
qabstracttextdocumentlayout Change license for tests files 2024-02-04 09:56:42 +01:00
qcssparser Change license for tests files 2024-02-04 09:56:42 +01:00
qfont Change license for tests files 2024-02-04 09:56:42 +01:00
qfontcache Change license for tests files 2024-02-04 09:56:42 +01:00
qfontdatabase Change license for tests files 2024-02-04 09:56:42 +01:00
qfontmetrics Change license for tests files 2024-02-04 09:56:42 +01:00
qglyphrun Change license for tests files 2024-02-04 09:56:42 +01:00
qinputcontrol Change license for tests files 2024-02-04 09:56:42 +01:00
qrawfont Change license for tests files 2024-02-04 09:56:42 +01:00
qstatictext Change license for tests files 2024-02-04 09:56:42 +01:00
qsyntaxhighlighter Change license for tests files 2024-02-04 09:56:42 +01:00
qtextblock Change license for tests files 2024-02-04 09:56:42 +01:00
qtextcursor Change license for tests files 2024-02-04 09:56:42 +01:00
qtextdocument Change license for tests files 2024-02-04 09:56:42 +01:00
qtextdocumentfragment QTextHtmlImporter: don't forget to appendBlock after block tag closed 2024-03-01 08:01:45 -07:00
qtextdocumentlayout Change license for tests files 2024-02-04 09:56:42 +01:00
qtextformat Change license for tests files 2024-02-04 09:56:42 +01:00
qtextimagehandler Change license for tests files 2024-02-04 09:56:42 +01:00
qtextlayout Change license for tests files 2024-02-04 09:56:42 +01:00
qtextlist Change license for tests files 2024-02-04 09:56:42 +01:00
qtextmarkdownimporter QTextMarkdownWriter: escape special characters (line or word prefix) 2024-03-04 21:03:51 -07:00
qtextmarkdownwriter QTextMarkdownWriter: escape special characters (line or word prefix) 2024-03-04 21:03:51 -07:00
qtextobject Change license for tests files 2024-02-04 09:56:42 +01:00
qtextodfwriter Change license for tests files 2024-02-04 09:56:42 +01:00
qtextpiecetable Change license for tests files 2024-02-04 09:56:42 +01:00
qtextscriptengine Change license for tests files 2024-02-04 09:56:42 +01:00
qtexttable Change license for tests files 2024-02-04 09:56:42 +01:00
CMakeLists.txt Move QZipReader/Writer from QtGui to QtCore 2023-04-26 12:01:05 +02:00