mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 16:59:06 +02:00
fix(v2): pass all props to CodeBlock component (#5183)
This commit is contained in:
parent
54e4b02666
commit
44225a3df9
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ const MDXComponents: MDXComponentsObject = {
|
|||
<CodeBlock
|
||||
{...((isValidElement(children)
|
||||
? children?.props
|
||||
: {children}) as Props)}
|
||||
: {...props}) as Props)}
|
||||
/>
|
||||
);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue