Optimize memory and Tailwind usage
mainMemory Optimization
To reduce the memory footprint when handling long chat histories, set the animation prop to null for messages that have already completed streaming.
Tailwind CSS Integration
If you are using Tailwind CSS to style your generated markdown, you must install @tailwindcss/typography.
Add the following classes to your AnimatedMarkdown container to ensure correct styling:
prose lg:prose-md prose-pre:p-0 prose-pre:m-0 prose-pre:bg-transparent