|
|
|
@ -16,7 +16,7 @@ const Link = ({ node, children, ...props }: any) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
const href = props.href || node.properties?.href
|
|
|
|
const href = props.href || node.properties?.href
|
|
|
|
if(!isValidUrl(href))
|
|
|
|
if(!href || !isValidUrl(href))
|
|
|
|
return <span>{children}</span>
|
|
|
|
return <span>{children}</span>
|
|
|
|
|
|
|
|
|
|
|
|
return <a href={href} target="_blank" className="cursor-pointer underline !decoration-primary-700 decoration-dashed">{children || 'Download'}</a>
|
|
|
|
return <a href={href} target="_blank" className="cursor-pointer underline !decoration-primary-700 decoration-dashed">{children || 'Download'}</a>
|
|
|
|
|