mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
feat(notifications): add markdown sanitizer for notification history expansion to notification service
This commit is contained in:
@@ -822,7 +822,7 @@ SmartPanel {
|
||||
NText {
|
||||
id: summaryText
|
||||
width: parent.width
|
||||
text: model.summary || I18n.tr("common.no-summary")
|
||||
text: (Settings.data.notifications.enableMarkdown && notificationDelegate.isExpanded) ? (model.summaryMarkdown || model.summary || I18n.tr("common.no-summary")) : (model.summary || I18n.tr("common.no-summary"))
|
||||
pointSize: Style.fontSizeM
|
||||
color: Color.mOnSurface
|
||||
textFormat: notificationDelegate.notificationTextFormat
|
||||
@@ -835,7 +835,7 @@ SmartPanel {
|
||||
NText {
|
||||
id: bodyText
|
||||
width: parent.width
|
||||
text: model.body || ""
|
||||
text: (Settings.data.notifications.enableMarkdown && notificationDelegate.isExpanded) ? (model.bodyMarkdown || model.body || "") : (model.body || "")
|
||||
pointSize: Style.fontSizeS
|
||||
color: Color.mOnSurfaceVariant
|
||||
textFormat: notificationDelegate.notificationTextFormat
|
||||
|
||||
Reference in New Issue
Block a user