Skip to content

Commit 0f1f509

Browse files
committed
fix(chat): restore markdown list markers
The design-system pass swapped inline `listStyleType` for Tailwind classes, but the edit that added `list-disc`/`list-decimal` silently did not apply while the one removing the inline style did. With Preflight setting `list-style: none`, every bullet and number in an assistant response disappeared. `list-item` on the `li` sets display only, not the marker type.
1 parent 3e65479 commit 0f1f509

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

apps/sim/app/(interfaces)/chat/components/message/components/markdown-renderer.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,14 @@ const COMPONENTS = {
5353
),
5454

5555
ul: ({ children }: React.HTMLAttributes<HTMLUListElement>) => (
56-
<ul className='mt-1 mb-1 space-y-1 pl-6 font-sans text-[var(--text-primary)]'>{children}</ul>
56+
<ul className='mt-1 mb-1 list-disc space-y-1 pl-6 font-sans text-[var(--text-primary)]'>
57+
{children}
58+
</ul>
5759
),
5860
ol: ({ children }: React.HTMLAttributes<HTMLOListElement>) => (
59-
<ol className='mt-1 mb-1 space-y-1 pl-6 font-sans text-[var(--text-primary)]'>{children}</ol>
61+
<ol className='mt-1 mb-1 list-decimal space-y-1 pl-6 font-sans text-[var(--text-primary)]'>
62+
{children}
63+
</ol>
6064
),
6165
li: ({ children }: React.LiHTMLAttributes<HTMLLIElement>) => (
6266
<li className='list-item font-sans text-[var(--text-primary)]'>{children}</li>

0 commit comments

Comments
 (0)