From 8798764b89bae58c7559e982ebe0054a08fb57d5 Mon Sep 17 00:00:00 2001
From: ZareMate <0.zaremate@gmail.com>
Date: Sun, 4 May 2025 19:11:20 +0200
Subject: [PATCH] feat: support markdown file previews in FilePreview component
---
 src/app/_components/FilePreview.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/app/_components/FilePreview.tsx b/src/app/_components/FilePreview.tsx
index 119e0cd..93688fb 100644
--- a/src/app/_components/FilePreview.tsx
+++ b/src/app/_components/FilePreview.tsx
@@ -89,7 +89,7 @@ export function FilePreview({ fileId, fileType }: FilePreviewProps) {
        );
   }
-  if (getFileType(fileType).startsWith("code")) {
+  if (getFileType(fileType).startsWith("code") || getFileType(fileType).startsWith("markdown")) {
     return (
     );
   }
-  if (getFileType(fileType).startsWith("code")) {
+  if (getFileType(fileType).startsWith("code") || getFileType(fileType).startsWith("markdown")) {
     return (
        );
     );