From 6c153c4e9a0b8d2ea0b2b4d2d631ab46470868ed Mon Sep 17 00:00:00 2001 From: Cayla Hamann Date: Tue, 14 Jul 2020 16:35:55 -0400 Subject: [PATCH] fix: fixed code snippet --- src/components/MDXContainer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/MDXContainer.js b/src/components/MDXContainer.js index d4fdd835f..e081d4977 100644 --- a/src/components/MDXContainer.js +++ b/src/components/MDXContainer.js @@ -11,7 +11,7 @@ import Caution from './Caution'; import Important from './Important'; import Tip from './Tip'; import Intro from './Intro'; -import CodeSnippet from './CodeSnippet'; +import MDXCodeBlock from './MDXCodeBlock'; import styles from './MDXContainer.module.scss'; @@ -23,7 +23,8 @@ const components = { Important, Tip, Intro, - code: (props) => , + code: MDXCodeBlock, + pre: (props) => props.children, }; const MDXContainer = ({ className, children }) => {