mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #1075] bug: numbered lists with an additional line between items are rendered incorrectly #50989
Reference in New Issue
Block a user
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 @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):
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.
@fbirlik commented on GitHub (Mar 7, 2024):
PR #1077 fixes the issue