Best way to render assistant messages? The Response component from AI Elements (@aisdk UI component library) gives you a lot for free. - Styles for Markdown with ShadCN theming - Sanitization with harden-react-markdown lib - Parsing for incomplete Markdown elements The sanitization package allows you to control which URLs are allowed for links and images. This protects you against prompt injection. Honestly, I didn't even realize I needed this until I saw the package. The UI styles are super nice! It also uses less vertical spacing than my previous implementation. Always happy to avoid scrolling. Thanks @haydenbleasel @cramforce. This saves so many hours!