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 ; }