From a22635000536855836e95665e7195ed86153c6f4 Mon Sep 17 00:00:00 2001 From: Caleb Jasik Date: Mon, 2 Feb 2026 11:31:42 -0600 Subject: [PATCH] Use a wrapper A.tsx instead of ejecting A.tsx --- src/theme/MDXComponents/A/index.tsx | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/theme/MDXComponents/A/index.tsx b/src/theme/MDXComponents/A/index.tsx index 251069c..f8e67b9 100644 --- a/src/theme/MDXComponents/A/index.tsx +++ b/src/theme/MDXComponents/A/index.tsx @@ -1,13 +1,11 @@ -import Link from '@docusaurus/Link'; -import { useAnchorTargetClassName } from '@docusaurus/theme-common'; -import type { Props } from '@theme/MDXComponents/A'; -import clsx from 'clsx'; +import type { WrapperProps } from '@docusaurus/types'; +import A from '@theme-original/MDXComponents/A'; +import type AType from '@theme/MDXComponents/A'; import React, { type ReactNode } from 'react'; -export default function MDXA(props: Props): ReactNode { - // MDX Footnotes have ids such as - const anchorTargetClassName = useAnchorTargetClassName(props.id); +type Props = WrapperProps; +export default function AWrapper(props: Props): ReactNode { // Customize rel attribute for *.defined.net links let customRel = props.rel; let customTarget = props.target; @@ -25,7 +23,5 @@ export default function MDXA(props: Props): ReactNode { } } - return ( - - ); + return ; }