This commit is contained in:
西村拓朗のアプリ 2026-06-25 23:14:10 +08:00 committed by GitHub
commit f72bfd8ffa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,6 +36,10 @@ const Link = ({ node, children, ...props }: any) => {
if (!href || !isValidUrl(href))
return <span>{children}</span>
// Handle mailto: links without target="_blank" to allow email client to open directly
if (href.toString().startsWith('mailto:'))
return <a href={href} className={commonClassName}>{children}</a>
return <a href={href} target="_blank" rel="noopener noreferrer" className={commonClassName}>{children || 'Download'}</a>
}
}