diff options
author | Shawn Rutledge <[email protected]> | 2024-03-01 00:39:50 -0700 |
---|---|---|
committer | Shawn Rutledge <[email protected]> | 2024-03-04 21:03:51 -0700 |
commit | ca4774131b9b8ee40b4d7f5c1ba296af4700207f (patch) | |
tree | 4478f2fcd8fea0a240bbb26b2c6ac7ec88e039a5 /src/plugins/platforms/wasm/qwasmintegration.cpp | |
parent | 5670d5f7e1ed65b6d6158b73edc43111d7b8ca53 (diff) |
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 <[email protected]>
Reviewed-by: Qt CI Bot <[email protected]>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmintegration.cpp')
0 files changed, 0 insertions, 0 deletions