Move data parsing into a dedicated function

Actually posting the notification is now the responsibility of a private function
This commit is contained in:
Loren Burkholder 2021-02-15 18:36:10 -05:00 committed by Nicolas Werner
parent 09303ca49f
commit 648844089c
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
7 changed files with 103 additions and 74 deletions

View file

@ -0,0 +1,11 @@
#include "Manager.h"
#include <QTextDocumentFragment>
#include "Utils.h"
QString
NotificationsManager::formatNotification(const QString &text)
{
return utils::markdownToHtml(text);
}