From cede2abedf57f265c45be1e105cf1a3f90e22104 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 25 Apr 2026 15:29:15 -0600 Subject: [PATCH] Improve formatting --- web/src/components/chat/ChatMessage.tsx | 30 +++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) 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 }) => ( +
    1. + ), + code: ({ node: _n, className, ...props }) => ( + + ), table: ({ node: _n, ...props }) => (