diff --git a/src/common/component/LinkifyText.tsx b/src/common/component/LinkifyText.tsx index 08c10dec..109acdc4 100644 --- a/src/common/component/LinkifyText.tsx +++ b/src/common/component/LinkifyText.tsx @@ -20,10 +20,15 @@ const LinkifyText = ({ url = true, mention = true, mentionTextOnly = false, ment return ( { + if (mentionTextOnly) return <> + {content} + ; + return + {content} + ; + }, url: ({ content, attributes: { href: link } }) => { console.log("attr", link); if (!url) return <>{content}; @@ -31,7 +36,7 @@ const LinkifyText = ({ url = true, mention = true, mentionTextOnly = false, ment {content} - {!link.startsWith("mailto") && } + ; }, mention: ({ content }) => {