cogentapps / chat-with-gpt

An open-source ChatGPT app with a voice
https://www.chatwithgpt.ai
MIT License
2.3k stars 489 forks source link

Ordered lists start at 2? #144

Open MikeWilliamsTC opened 1 year ago

MikeWilliamsTC commented 1 year ago

Is this the desired behavior? Should the list start at 1 by default?

image

bsu3338 commented 1 year ago

Changing the below line seemed to have worked

app/src/components/markdown.tsx

-  <ol start={start ?? 1} style={{ counterReset: list-item ${(start || 1)} }}>
+  <ol start={start ?? 0} style={{ counterReset: list-item ${(start || 0)} }}>