diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts
index a64ff5d4f..6dbd90bb9 100644
--- a/src/lib/utils/index.ts
+++ b/src/lib/utils/index.ts
@@ -555,8 +555,8 @@ export const removeFormattings = (str: string) => {
 	return str
         // Block elements (remove completely)
         .replace(/(```[\s\S]*?```)/g, '')                    // Code blocks
-        .replace(/^\|.*\|$/gm, '')                          // Tables};
-		// Inline elements (preserve content)
+        .replace(/^\|.*\|$/gm, '')                          // Tables
+	// Inline elements (preserve content)
         .replace(/(?:\*\*|__)(.*?)(?:\*\*|__)/g, '$1')      // Bold
         .replace(/(?:[*_])(.*?)(?:[*_])/g, '$1')            // Italic
         .replace(/~~(.*?)~~/g, '$1')                        // Strikethrough