[GH-ISSUE #1075] bug: numbered lists with an additional line between items are rendered incorrectly #27852

Closed
opened 2026-04-25 02:36:32 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @fbirlik on GitHub (Mar 7, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/1075

Bug Report

Description

Bug Summary:
Numbered lists with an additional newline between items are rendered incorrectly.

Steps to Reproduce:
Ask for a list of items (if response doesn't contain newlines between items, manually add them)

Expected Behavior:
List items should render next to the number

Actual Behavior:
Item text starts in another line instead of next to the number.

Logs and Screenshots

Screenshots (if applicable):

Screenshot 2024-03-06 at 8 37 06 PM

Additional Information

markup.js adds additional 'p' tags within 'li' elements if there is an additional newline between items. I believe '.prose ol > li::before' css results 'p' tag to become block.

Originally created by @fbirlik on GitHub (Mar 7, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/1075 # Bug Report ## Description **Bug Summary:** Numbered lists with an additional newline between items are rendered incorrectly. **Steps to Reproduce:** Ask for a list of items (if response doesn't contain newlines between items, manually add them) **Expected Behavior:** List items should render next to the number **Actual Behavior:** Item text starts in another line instead of next to the number. ## Logs and Screenshots **Screenshots (if applicable):** <img width="701" alt="Screenshot 2024-03-06 at 8 37 06 PM" src="https://github.com/open-webui/open-webui/assets/31392854/2a70dc94-ca5d-4eb6-a5ee-605f1324df19"> ## Additional Information markup.js adds additional 'p' tags within 'li' elements if there is an additional newline between items. I believe '.prose ol > li::before' css results 'p' tag to become block.
Author
Owner

@fbirlik commented on GitHub (Mar 7, 2024):

PR #1077 fixes the issue

<!-- gh-comment-id:1982288527 --> @fbirlik commented on GitHub (Mar 7, 2024): PR #1077 fixes the issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#27852