From 1a78f609043b087c74ceaf2b5939b2aae3744a12 Mon Sep 17 00:00:00 2001 From: karthik mv Date: Fri, 8 Dec 2023 00:10:23 +0530 Subject: [PATCH] fix: single backtick rendering as a codeblock in casestudies (#2208) Co-authored-by: Akshat Nema <76521428+akshatnema@users.noreply.github.com>%0ACo-authored-by: Lukasz Gornicki --- components/MDX.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/MDX.js b/components/MDX.js index 168e6c8dfb75..9f6182efb4c3 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,