diff --git a/app/dashboard/page.tsx b/app/dashboard/page.tsx index ab75867..1698218 100644 --- a/app/dashboard/page.tsx +++ b/app/dashboard/page.tsx @@ -186,15 +186,31 @@ export default function Dashboard() {

Previously Generated Content

{previousContent.length ? (
- {previousContent.map((content) => ( -
-

{content.question}

- -

- Generated on {new Date(content.createdAt).toLocaleString()} -

-
- ))} + {previousContent.map((content) => { + const isMathContent = + content.response.trim().startsWith("$$") && + content.response.trim().endsWith("$$"); + + return ( +
+

{content.question}

+ {isMathContent ? ( + + ) : ( + + )} +

+ Generated on {new Date(content.createdAt).toLocaleString()} +

+
+ ); + })}
) : (

No previous content found.