diff --git a/web/src/components/chat/ChatMessage.tsx b/web/src/components/chat/ChatMessage.tsx
index c5f92b5f46..6478b48fc5 100644
--- a/web/src/components/chat/ChatMessage.tsx
+++ b/web/src/components/chat/ChatMessage.tsx
@@ -155,14 +155,40 @@ export function MessageBubble({
) : (
*:last-child]:inline",
!isComplete &&
- "after:ml-0.5 after:inline-block after:h-4 after:w-2 after:animate-cursor-blink after:rounded-sm after:bg-foreground after:align-middle after:content-['']",
+ "[&>p:last-child]:inline after:ml-0.5 after:inline-block after:h-4 after:w-2 after:animate-cursor-blink after:rounded-sm after:bg-foreground after:align-middle after:content-['']",
)}
>
(
+
+ ),
+ ul: ({ node: _n, ...props }) => (
+
+ ),
+ ol: ({ node: _n, ...props }) => (
+
+ ),
+ li: ({ node: _n, ...props }) => (
+
+ ),
+ code: ({ node: _n, className, ...props }) => (
+
+ ),
table: ({ node: _n, ...props }) => (