diff --git a/mdx-components.tsx b/mdx-components.tsx index 7275e0c..a010efe 100644 --- a/mdx-components.tsx +++ b/mdx-components.tsx @@ -1,5 +1,6 @@ import type {MDXComponents} from 'mdx/types' import {createSlug} from './lib/createSlug' +import Link from 'next/link' // This file allows you to provide custom React components // to be used in MDX files. You can import and use any @@ -9,7 +10,9 @@ import {createSlug} from './lib/createSlug' // This file is required to use MDX in `app` directory. export function useMDXComponents(components: MDXComponents): MDXComponents { return { - h2: ({children}) =>

{children}#

, + h2: ({children}) => + // @ts-ignore TS18049 +

{children}#

, // Allows customizing built-in components, e.g. to add styling. // h1: ({ children }) =>

{children}

, ...components,