import React from "react"; /** * Default link component for regular markdown links * * Handles external links with proper target and rel attributes. */ interface DefaultLinkProps extends React.AnchorHTMLAttributes { node?: any; // AST node from react-markdown href?: string; children?: React.ReactNode; } export const DefaultLink: React.FC = ({ href, children, ...props }) => { const isExternal = href?.startsWith("http://") || href?.startsWith("https://"); return ( e.stopPropagation()} > {children} ); };