From 648055f4055c0499e894ff4fd38b1a6e9ef47327 Mon Sep 17 00:00:00 2001 From: Krishna Ayyalasomayajula Date: Mon, 1 Jun 2026 21:24:26 -0500 Subject: [PATCH] fix: spread props on MDX heading components to enable TOC IDs --- mdx-components.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mdx-components.tsx b/mdx-components.tsx index 6d95c43..97e1948 100644 --- a/mdx-components.tsx +++ b/mdx-components.tsx @@ -4,19 +4,19 @@ export function useMDXComponents(components: MDXComponents): MDXComponents { return { ...components, // Typography - h1: ({ children }) => ( -

- {children} + h1: (props) => ( +

+ {props.children}

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

- {children} + h2: (props) => ( +

+ {props.children}

), - h3: ({ children }) => ( -

- {children} + h3: (props) => ( +

+ {props.children}

), p: ({ children }) => (