mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
📖 feat: Word Wrapping for Text and Markdown Code Blocks (#10055)
Enables word wrapping for text, markdown, and plaintext code blocks to prevent horizontal scrolling on long lines. Improves readability for prose content in fenced code blocks.
This commit is contained in:
parent
7c9a868d34
commit
d990fe1d5f
1 changed files with 6 additions and 2 deletions
|
|
@ -1243,8 +1243,12 @@ pre {
|
|||
Ubuntu Mono,
|
||||
monospace !important;
|
||||
}
|
||||
code[class='language-plaintext'] {
|
||||
white-space: pre-line;
|
||||
code.language-text,
|
||||
code.language-txt,
|
||||
code.language-plaintext,
|
||||
code.language-markdown,
|
||||
code.language-md {
|
||||
white-space: pre-wrap !important;
|
||||
}
|
||||
code.hljs,
|
||||
code[class*='language-'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue