diff --git a/packages/nextjs/components/GetMarkdownComponents/GetMarkdownComponents.tsx b/packages/nextjs/components/GetMarkdownComponents/GetMarkdownComponents.tsx index b5cad31b..d477c065 100644 --- a/packages/nextjs/components/GetMarkdownComponents/GetMarkdownComponents.tsx +++ b/packages/nextjs/components/GetMarkdownComponents/GetMarkdownComponents.tsx @@ -2,13 +2,11 @@ import { Components } from "react-markdown"; export const getMarkdownComponents = (): Components => { return { - h1: ({ children }) => { - return ( -

- {children} -

- ); - }, + h1: ({ children }) => ( +

+ {children} +

+ ), h2: ({ children }) => (

{children} @@ -50,8 +48,16 @@ export const getMarkdownComponents = (): Components => { {children} ), - li: ({ children }) => ( -
  • {children}
  • + ul: ({ children }) => ( + + ), + ol: ({ children }) => ( +
      + {children} +
    ), + li: ({ children }) =>
  • {children}
  • , }; };