Skip to content

Commit 1a971b5

Browse files
committed
revert white-space to normal when code is inline instead of in a pre
1 parent ad97b23 commit 1a971b5

7 files changed

+7
-0
lines changed

themes/prism-coy.css

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ pre[class*="language-"] {
7777
color: #c92c2c;
7878
border: 1px solid rgba(0, 0, 0, 0.1);
7979
display: inline;
80+
white-space: normal;
8081
}
8182

8283
pre[class*="language-"]:before,

themes/prism-dark.css

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ pre[class*="language-"] {
5555
border-radius: .3em;
5656
border: .13em solid hsl(30, 20%, 40%);
5757
box-shadow: 1px 1px .3em -.1em black inset;
58+
white-space: normal;
5859
}
5960

6061
.token.comment,

themes/prism-funky.css

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ code[class*="language-"] {
4545
padding: .2em;
4646
border-radius: .3em;
4747
box-shadow: none;
48+
white-space: normal;
4849
}
4950

5051
.token.comment,

themes/prism-okaidia.css

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ pre[class*="language-"] {
4444
:not(pre) > code[class*="language-"] {
4545
padding: .1em;
4646
border-radius: .3em;
47+
white-space: normal;
4748
}
4849

4950
.token.comment,

themes/prism-tomorrow.css

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ pre[class*="language-"] {
4343
:not(pre) > code[class*="language-"] {
4444
padding: .1em;
4545
border-radius: .3em;
46+
white-space: normal;
4647
}
4748

4849
.token.comment,

themes/prism-twilight.css

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ code[class*="language-"]::selection, code[class*="language-"] ::selection {
7070
border: .13em solid hsl(0, 0%, 33%); /* #545454 */
7171
box-shadow: 1px 1px .3em -.1em black inset;
7272
padding: .15em .2em .05em;
73+
white-space: normal;
7374
}
7475

7576
.token.comment,

themes/prism.css

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ pre[class*="language-"] {
6262
:not(pre) > code[class*="language-"] {
6363
padding: .1em;
6464
border-radius: .3em;
65+
white-space: normal;
6566
}
6667

6768
.token.comment,

0 commit comments

Comments
 (0)