Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(code): wrap lines in code blocks, only in plaintext documents
Fixes: #7601

Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- authored and backportbot[bot] committed Oct 9, 2025
commit b724ab2cc059c0d9c811ad35c09d35b5f4a597c1
9 changes: 8 additions & 1 deletion src/css/prosemirror.scss
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ div.ProseMirror {
}

pre {
white-space: pre-wrap;
white-space: pre;
overflow-x: auto;
background-color: var(--color-background-dark);
border-radius: var(--border-radius);
padding: 1em 1.3em;
Expand All @@ -208,6 +209,12 @@ div.ProseMirror {
font-size: 0.6rem;
}
code {
// We want line wrapping in plaintext documents only
white-space: pre !important;
&.language-plaintext {
white-space: pre-wrap !important;
}

.hljs-comment,
.hljs-quote {
color: #999999;
Expand Down
Loading