Download src/components/features/markdown/anchor.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 407 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/markdown/anchor.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/markdown/anchor.tsx
-
curl -L -o anchor.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/markdown/anchor.tsx
407 Bytes
| import React from "react"; | |
| import { ExtraProps } from "react-markdown"; | |
| export function anchor({ | |
| href, | |
| children, | |
| }: React.ClassAttributes<HTMLAnchorElement> & | |
| React.AnchorHTMLAttributes<HTMLAnchorElement> & | |
| ExtraProps) { | |
| return ( | |
| <a | |
| className="text-blue-500 hover:underline" | |
| href={href} | |
| target="_blank" | |
| rel="noopener noreferrer" | |
| > | |
| {children} | |
| </a> | |
| ); | |
| } | |