Skip to content
Snippets Groups Projects
Verified Commit 01bbec88 authored by Loren Burkholder's avatar Loren Burkholder Committed by Nicolas Werner
Browse files

Don't run markdownToHtml on messages

parent e6305048
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment