Skip to content

Commit 526720c

Browse files
committed
fix inline code issue
1 parent bdf89d1 commit 526720c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mdx-components.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,11 @@ export function useMDXComponents() {
109109
</section>
110110
),
111111
// Inline code
112-
code: (props: CodeInlineProps) => {
112+
// adding the children prop as workaround (?)
113+
code: (props: CodeInlineProps & { children: string }) => {
113114
return (
114115
<CodeInline
115-
value={props.value}
116+
value={props.children}
116117
//language={props.language}
117118
allowErrors
118119
css={{

0 commit comments

Comments
 (0)