File tree 2 files changed +15
-7
lines changed
2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 27
27
border-style : dashed;
28
28
}
29
29
30
- code .inline-code ,
31
- code .inline-verbatim {
32
- border-radius : 5px ;
33
- border : 1px solid # bcbec0 ;
34
- padding : 2px ;
35
- }
36
-
37
30
pre .src-block [class ] {
38
31
font-size : 12px ;
39
32
}
Original file line number Diff line number Diff line change @@ -198,6 +198,21 @@ export const ProcessedOrg = (props: ProcessedOrgProps) => {
198
198
p : ( { children } ) => {
199
199
return < p lang = "en" > { children as ReactNode } </ p >
200
200
} ,
201
+ code : ( { className, children } ) => {
202
+ if ( className === 'inline-code' ) {
203
+ return < chakra . code
204
+ px = { 1 }
205
+ py = { 0.5 }
206
+ rounded = "sm"
207
+ fontSize = "xs"
208
+ color = "gray.800"
209
+ bgColor = "gray.300"
210
+ >
211
+ { children as any }
212
+ </ chakra . code >
213
+ }
214
+ return children ;
215
+ } ,
201
216
} ,
202
217
} )
203
218
. use ( rehypePrism as any , { ignoreMissing : true } ) ,
You can’t perform that action at this time.
0 commit comments