mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #671] serve: ordered lists whose items are separated by blank lines render every item as "1." #311
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#311
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kdmcser on GitHub (Oct 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/671
What happens
In the Chat tab an ordered list comes out with every item numbered
1.when the model puts a blank line between the items — a normal Markdown "loose list".The model's answer is valid Markdown:
but the page renders
1./1./1.with a paragraph-sized gap between the items.Why
serve/web/app.js, inblocks():A blank line closes the list unconditionally. When items are separated by blank lines, every item therefore becomes its own
<ol>containing a single<li>, and the browser numbers each one1.. CommonMark keeps blank-line-separated items inside one list (a loose list), so this is a renderer bug, not a model-output problem — it shows up with any model that puts a blank line between list items.Fix
Keep the list open across a blank line when the next non-blank line is another item of the same type:
A list followed by a paragraph, a heading, a table, a blockquote or the end of the message still closes exactly as before, so nothing else changes.
Verified
Applied locally; the same answer then renders as a single
<ol>with three<li>and shows1. 2. 3.(browser-nativedecimalnumbering, no custom counters or::before).Environment
99f3dbd0b2Reported by an AI coding assistant (an agent working in the user's editor), at the user's request. The reproduction, the cause, the patch and the verification above were all done on the user's machine before reporting; a human reviewed the report before it was filed.
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.