Don't run markdownToHtml on messages
This commit is contained in:
parent
e630504863
commit
01bbec88dd
@ -156,9 +156,9 @@ NotificationsManager::formatNotification(const QString &text)
|
||||
{
|
||||
static auto capabilites = dbus.call("GetCapabilites");
|
||||
if (capabilites.arguments().contains("body-markup"))
|
||||
return utils::markdownToHtml(text);
|
||||
return text;
|
||||
else
|
||||
return QTextDocumentFragment::fromHtml(utils::markdownToHtml(text)).toPlainText();
|
||||
return QTextDocumentFragment::fromHtml(text).toPlainText();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -7,5 +7,5 @@
|
||||
QString
|
||||
NotificationsManager::formatNotification(const QString &text)
|
||||
{
|
||||
return QTextDocumentFragment::fromHtml(utils::markdownToHtml(text)).toPlainText();
|
||||
return QTextDocumentFragment::fromHtml(text).toPlainText();
|
||||
}
|
||||
|
@ -79,5 +79,5 @@ NotificationsManager::removeNotification(const QString &, const QString &)
|
||||
QString
|
||||
NotificationsManager::formatNotification(const QString &text)
|
||||
{
|
||||
return QTextDocumentFragment::fromHtml(utils::markdownToHtml(text)).toPlainText();
|
||||
return QTextDocumentFragment::fromHtml(text).toPlainText();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user