mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-01 03:17:20 -05:00
[PR #10002] [MERGED] fix: remove whitespace to improve typesetting for inline Markdown #38079
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/10002
Author: @tremlin
Created: 2/14/2025
Status: ✅ Merged
Merged: 2/14/2025
Merged by: @tjbck
Base:
dev← Head:fix-markdown-inline-whitespace📝 Commits (1)
9072959fix: remove whitespace to improve typesetting for inline Markdown📊 Changes
1 file changed (+3 additions, -9 deletions)
View changed files
📝
src/lib/components/chat/Messages/Markdown/MarkdownInlineTokens.svelte(+3 -9)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
The rendering of certain Markdown elements like
**or*introduces an additional whitespace (see screenshots). This has two negative effects:Technical background:
Markdown HTML is rendered with the CSS class
.markdown-prose. This CSS class setswhite-space: pre-line. This means white-space in the HTML source code affects the display in the browser. The proposed fix removes the additional white space that is introduced when rendering the HTML in JavaScript from the Markdown input.Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
Before the change:

After the change:

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.