Skip to content

Commit 93eb14e

Browse files
committed
improvement(chat): render mailto links as plain text
1 parent 3eadb90 commit 93eb14e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/chat-content

apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/chat-content/chat-content.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,13 @@ const MARKDOWN_COMPONENTS = {
277277
</ExternalLink>
278278
)
279279
}
280+
if (href?.startsWith('mailto:')) {
281+
return (
282+
<a href={href} className='not-prose text-[var(--text-primary)] no-underline'>
283+
{children}
284+
</a>
285+
)
286+
}
280287
return (
281288
<a
282289
href={href}

0 commit comments

Comments
 (0)