dan
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
beta/src/components/MDX/Link.tsx
|
@ -15,7 +15,7 @@ function Link({ |
|
|
...props |
|
|
...props |
|
|
}: JSX.IntrinsicElements['a']) { |
|
|
}: JSX.IntrinsicElements['a']) { |
|
|
const classes = |
|
|
const classes = |
|
|
'inline text-link dark:text-link-dark break-normal border-b border-link border-opacity-0 hover:border-opacity-100 duration-100 ease-in transition leading-normal'; |
|
|
'inline text-link dark:text-link-dark border-b border-link border-opacity-0 hover:border-opacity-100 duration-100 ease-in transition leading-normal'; |
|
|
const modifiedChildren = Children.toArray(children).map((child: any) => { |
|
|
const modifiedChildren = Children.toArray(children).map((child: any) => { |
|
|
if (child.type?.mdxName && child.type?.mdxName === 'inlineCode') { |
|
|
if (child.type?.mdxName && child.type?.mdxName === 'inlineCode') { |
|
|
return cloneElement(child, { |
|
|
return cloneElement(child, { |
|
|