Update src/components/MDXComponents.tsx

Co-authored-by: Corwin Smith <cssmittys@gmail.com>
This commit is contained in:
Paul Wackerow 2022-11-28 22:20:43 +01:00 committed by GitHub
parent ce98eb17fe
commit f36e271041
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -80,7 +80,14 @@ const MDXComponents = {
</Stack>
),
// code
code: ({ children, ...props }: any) => <Code {...props}>{children}</Code>
code: ({ children, ...props }: any) => <Code {...props}>{children}</Code>,
// list
ul: ({children}: any) => {
return <UnorderedList mb={7} px={4}>{children}</UnorderedList>
},
li: ({ children }: any) => {
return <ListItem color='primary'>{children}</ListItem>
}
};
export default MDXComponents;