diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2021-06-15 16:50:44 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-05-14 21:32:05 +0200 |
commit | 7c7606460403e6495b860134f28e8d4d45c6c810 (patch) | |
tree | 8b360ddd4bf22c21af468fb1c736c9d96c646c20 /src/gui/util/qvalidator.cpp | |
parent | e69ebf93ca49d2c3de9fc723c744fbcb21709bb3 (diff) |
Add QTextDocFragment::to/fromMarkdown() & QTextCursor::insertMarkdown()
Also add the beginnings of an autotest for QTextCursor::insertHtml(),
for comparison purposes.
We can see that the block to be inserted is merged with an existing
block by default rather than being inserted as a new one, with both HTML and
Markdown insertions. So now we test for leading and trailing newlines
in the markdown to be inserted, to determine whether we need a new block
into which to insert, and to "hit enter" at the end of the insertion.
QSKIP the toMarkdown() comparisons if GeneralFont is mono. This happens
on Boot2Qt systems in CI.
Task-number: QTBUG-76105
Task-number: QTBUG-94462
Task-number: QTBUG-100515
Task-number: QTBUG-103484
Change-Id: I51a05c6a7cd0be4f2817f4a922f45fa663982293
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/gui/util/qvalidator.cpp')
0 files changed, 0 insertions, 0 deletions