revert white-space to normal when code is inline instead of in a pre
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
diff --git a/themes/prism-coy.css b/themes/prism-coy.css
index fbd559c..70981ca 100644
--- a/themes/prism-coy.css
+++ b/themes/prism-coy.css
@@ -77,6 +77,7 @@ pre[class*="language-"] {
color: #c92c2c;
border: 1px solid rgba(0, 0, 0, 0.1);
display: inline;
+ white-space: normal;
}
pre[class*="language-"]:before,
diff --git a/themes/prism-dark.css b/themes/prism-dark.css
index 74b1a65..3c956f5 100644
--- a/themes/prism-dark.css
+++ b/themes/prism-dark.css
@@ -55,6 +55,7 @@ pre[class*="language-"] {
border-radius: .3em;
border: .13em solid hsl(30, 20%, 40%);
box-shadow: 1px 1px .3em -.1em black inset;
+ white-space: normal;
}
.token.comment,
diff --git a/themes/prism-funky.css b/themes/prism-funky.css
index 56dee03..e4d676d 100644
--- a/themes/prism-funky.css
+++ b/themes/prism-funky.css
@@ -45,6 +45,7 @@ code[class*="language-"] {
padding: .2em;
border-radius: .3em;
box-shadow: none;
+ white-space: normal;
}
.token.comment,
diff --git a/themes/prism-okaidia.css b/themes/prism-okaidia.css
index 3b9e2a6..676b070 100644
--- a/themes/prism-okaidia.css
+++ b/themes/prism-okaidia.css
@@ -44,6 +44,7 @@ pre[class*="language-"] {
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
+ white-space: normal;
}
.token.comment,
diff --git a/themes/prism-tomorrow.css b/themes/prism-tomorrow.css
index f44ab81..a4e7873 100644
--- a/themes/prism-tomorrow.css
+++ b/themes/prism-tomorrow.css
@@ -43,6 +43,7 @@ pre[class*="language-"] {
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
+ white-space: normal;
}
.token.comment,
diff --git a/themes/prism-twilight.css b/themes/prism-twilight.css
index e873fa6..09b8dff 100644
--- a/themes/prism-twilight.css
+++ b/themes/prism-twilight.css
@@ -70,6 +70,7 @@ code[class*="language-"]::selection, code[class*="language-"] ::selection {
border: .13em solid hsl(0, 0%, 33%); /* #545454 */
box-shadow: 1px 1px .3em -.1em black inset;
padding: .15em .2em .05em;
+ white-space: normal;
}
.token.comment,
diff --git a/themes/prism.css b/themes/prism.css
index e81ebed..2918f11 100644
--- a/themes/prism.css
+++ b/themes/prism.css
@@ -62,6 +62,7 @@ pre[class*="language-"] {
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
+ white-space: normal;
}
.token.comment,