diff --git a/components/StyledMarkdown.tsx b/components/StyledMarkdown.tsx index 4d8f5dc96..a03787f16 100644 --- a/components/StyledMarkdown.tsx +++ b/components/StyledMarkdown.tsx @@ -265,11 +265,9 @@ const StyledMarkdownBlock = ({ markdown }: { markdown: string }) => { ); }, }, - th: { + th: { component: ({ children }) => ( - - {children} ), @@ -548,13 +546,12 @@ export function TableOfContentMarkdown({ href={`#${slug}`} className='block cursor-pointer mb-3 font-bold text-sm leading-4 ml-[-0.40rem] font-bold hover:text-blue-500' > - + {children} ); }, }, - /* eslint-disable */ h3: depth >= 3 ? {