Simplify and fix chat markdown helper and add additional tests

This commit is contained in:
James Graham
2026-01-11 18:14:37 +00:00
parent b45ded678e
commit 79de8a792c
7 changed files with 185 additions and 87 deletions

View File

@@ -49,6 +49,7 @@ public:
if (!doc) {
return false;
}
// qWarning() << doc->toPlainText() <<text;
return text == doc->toPlainText();
}
@@ -58,6 +59,7 @@ public:
if (cursor.isNull()) {
return false;
}
// qWarning() << RichFormat::formatsAtCursor(cursor) <<formats;
return RichFormat::formatsAtCursor(cursor) == formats;
}