This PR addresses an issue where excessive line spacing was added when rendering user messages in Markdown format, resulting in an unintended appearance.
Before:
After fix:
User message rendered in markdown
User message rendered as plain text
Details
Currently, Markdown-rendered user messages have a whitespace-pre-wrap class applied to their wrapper div. This class introduces extra line spacing in markdown text.
This fix removes the whitespace-pre-wrap class from the wrapper div for markdown-rendered user messages, ensuring the line spacing is consistent and appropriate.
Please let me know if this solution isn't suitable.
Change Type
[x] Bug fix (non-breaking change which fixes an issue)
Testing
I have manually verified the following:
Markdown-rendered user messages display with correct line spacing
Markdown formatting functions properly
Non-markdown user messages maintain appropriate line breaks
Checklist
[x] My code adheres to this project's style guidelines
Summary
This PR addresses an issue where excessive line spacing was added when rendering user messages in Markdown format, resulting in an unintended appearance.
Before:
After fix:
User message rendered in markdown
User message rendered as plain text
Details
Currently, Markdown-rendered user messages have a
whitespace-pre-wrap
class applied to their wrapper div. This class introduces extra line spacing in markdown text.This fix removes the
whitespace-pre-wrap
class from the wrapper div for markdown-rendered user messages, ensuring the line spacing is consistent and appropriate.Please let me know if this solution isn't suitable.
Change Type
Testing
I have manually verified the following:
Checklist