We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 265f98b commit f119c51Copy full SHA for f119c51
util/processOrg.tsx
@@ -197,20 +197,17 @@ export const ProcessedOrg = (props: ProcessedOrgProps) => {
197
p: ({ children }) => {
198
return <p lang="en">{children as ReactNode}</p>
199
},
200
- code: ({ className, children }) => {
201
- if (className === 'inline-code') {
202
- return <chakra.code
203
- px={1}
204
- py={0.5}
205
- rounded="sm"
206
- fontSize="xs"
207
- color="gray.800"
208
- bgColor="gray.300"
209
- >
210
- {children}
211
- </chakra.code>
212
- }
213
- return children;
+ code: ({ children }) => {
+ return <chakra.code
+ px={1}
+ py={0.5}
+ rounded="sm"
+ fontSize="xs"
+ color="gray.800"
+ bgColor="gray.300"
+ >
+ {children}
+ </chakra.code>;
214
215
216
})
0 commit comments