diff --git a/components/MDX.js b/components/MDX.js index 168e6c8dfb7..9f6182efb4c 100644 --- a/components/MDX.js +++ b/components/MDX.js @@ -60,9 +60,8 @@ export function getMDXComponents() { th: props => , tr: props => , td: props => , - pre: props =>
, - inlineCode: props => , - code: CodeComponent, + pre: props => CodeComponent(props.children.props), + code: props => , hr: props =>
, CodeBlock, ChapterSuggestions,