diff --git a/src/components/overlays/notificationsModal/components/ListView.tsx b/src/components/overlays/notificationsModal/components/ListView.tsx index e2cdc4f7..21f30c77 100644 --- a/src/components/overlays/notificationsModal/components/ListView.tsx +++ b/src/components/overlays/notificationsModal/components/ListView.tsx @@ -180,12 +180,32 @@ export function ListView({ -
- {notification.description - .replace(/\n/g, " ") - .substring(0, 150)} - {notification.description.length > 150 ? "..." : ""} -
+") + .replace(/\n- /g, "
• ") + .replace( + /\n\*\*([^*]+)\*\*/g, + "
", + ) + .replace(/^/, "
") + .replace(/$/, "
") + .replace(/<\/p>/g, "") + .replace( + /
• /g, + '
•', + ) + .replace(/<\/p>/g, "
") + .substring(0, 150) + + (notification.description.length > 150 + ? "..." + : ""), + }} + />