We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4fc6d66 + b724ab2 commit b4d0755Copy full SHA for b4d0755
1 file changed
src/css/prosemirror.scss
@@ -193,7 +193,8 @@ div.ProseMirror {
193
}
194
195
pre {
196
- white-space: pre-wrap;
+ white-space: pre;
197
+ overflow-x: auto;
198
background-color: var(--color-background-dark);
199
border-radius: var(--border-radius);
200
padding: 1em 1.3em;
@@ -208,6 +209,12 @@ div.ProseMirror {
208
209
font-size: 0.6rem;
210
211
code {
212
+ // We want line wrapping in plaintext documents only
213
+ white-space: pre !important;
214
+ &.language-plaintext {
215
+ white-space: pre-wrap !important;
216
+ }
217
+
218
.hljs-comment,
219
.hljs-quote {
220
color: #999999;
0 commit comments