Skip to content

Commit ce0ec42

Browse files
committed
Prevent italics in code blocks by default
1 parent 1d8839b commit ce0ec42

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/styles/global.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ button:active {
7171
@apply outline-1 outline-accent outline-offset-2;
7272
}
7373

74-
a, button {
74+
a,
75+
button {
7576
@apply hover:cursor-pointer;
7677
}
7778

@@ -111,6 +112,12 @@ article img {
111112
div.expressive-code {
112113
@apply my-8;
113114

115+
/* Prevent italics in code blocks */
116+
/* Feel free to remove this if you want italics */
117+
div.code span {
118+
font-style: normal !important;
119+
}
120+
114121
figure {
115122
@apply border-2 border-foreground/8 !rounded-xl;
116123
box-shadow: none !important;

0 commit comments

Comments
 (0)