From 100f2bc6c8a7d4dc867c77724723a402346d3b62 Mon Sep 17 00:00:00 2001
From: Matthias Nott <mnott@mnsoft.org>
Date: Sat, 11 Apr 2026 15:53:00 +0200
Subject: [PATCH] fix: add markdown and text file extension mappings for file cards

---
 lib/widgets/message_bubble.dart |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/lib/widgets/message_bubble.dart b/lib/widgets/message_bubble.dart
index 63bbac4..24aa48c 100644
--- a/lib/widgets/message_bubble.dart
+++ b/lib/widgets/message_bubble.dart
@@ -474,7 +474,13 @@
       'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': 'xlsx',
       'text/plain': 'txt',
       'text/csv': 'csv',
+      'text/markdown': 'md',
+      'text/html': 'html',
+      'text/yaml': 'yaml',
       'application/json': 'json',
+      'application/xml': 'xml',
+      'application/zip': 'zip',
+      'application/gzip': 'gz',
     };
     return map[mime] ?? 'bin';
   }

--
Gitblit v1.3.1