Skip to content

Commit 56de695

Browse files
authored
wrap code (#286)
1 parent b9f713d commit 56de695

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/components/Editor/MarkdownEditor/style.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
display: block;
1919
font-family: "Roboto Mono", monospace;
2020
padding: 15px 20px;
21+
white-space: pre-wrap;
2122

2223
&:global.inline {
2324
background: $tc-gray-10;

src/components/challenge-detail/Specification/styles.module.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ $tc-link-visited: #0c4e98;
141141
margin: (2 * $base-unit) 0 (3 * $base-unit);
142142
padding: 3 * $base-unit;
143143
display: block;
144+
white-space: pre-wrap;
144145
}
145146

146147
pre {
@@ -374,7 +375,7 @@ $tc-link-visited: #0c4e98;
374375
}
375376

376377
code {
377-
white-space: pre;
378+
white-space: pre-wrap;
378379
margin: 10px 0 15px;
379380
background: $tc-gray-neutral-light;
380381
border: 1px solid silver;

0 commit comments

Comments
 (0)