From 93812ac0464b1e8c762da8e358c115ef07a7ff9f Mon Sep 17 00:00:00 2001 From: Hamid Afghan Date: Thu, 29 Oct 2026 12:04:17 +0100 Subject: [PATCH] fix: render markdown in notifications --- Info.plist | 2 +- Sources/DevNull/Views/Workspace/YouViews.swift | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Info.plist b/Info.plist index 9ab0b96..0c02794 100644 --- a/Info.plist +++ b/Info.plist @@ -21,7 +21,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.3.1 + 0.3.2 CFBundleURLTypes diff --git a/Sources/DevNull/Views/Workspace/YouViews.swift b/Sources/DevNull/Views/Workspace/YouViews.swift index 23552b7..fbcd068 100644 --- a/Sources/DevNull/Views/Workspace/YouViews.swift +++ b/Sources/DevNull/Views/Workspace/YouViews.swift @@ -347,11 +347,9 @@ struct NotificationRow: View { } if let commit = notification.commit, !commit.text.isEmpty { - Text(commit.text) - .font(DS.Fonts.body) - .foregroundStyle(DS.Colors.inkMuted) - .lineLimit(2) - .multilineTextAlignment(.leading) + // Notifications carry the same rendered segments as commit rows. Reuse the renderer so + // fenced and inline code, links, and mentions don't fall back to their Markdown source. + CommitBodyView(commit: commit, foldable: false, lineLimit: 2) } if notification.type == .followed, !notification.isGroup, let actor = notification.actor, actor.isFollowed != true {