Skip to content

Commit ccb87b1

Browse files
committed
remove unnecessary span
1 parent da1d53b commit ccb87b1

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/utils.tsx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,14 @@ const markDownRenderers: { [nodeType: string]: React.ElementType } = {
8484
}
8585

8686
return (
87-
<span>
88-
<a
89-
className={`${isUrl ? 'str-chat__message-url-link' : ''}`}
90-
href={href}
91-
rel='nofollow noreferrer noopener'
92-
target='_blank'
93-
>
94-
{children}
95-
</a>
96-
</span>
87+
<a
88+
className={`${isUrl ? 'str-chat__message-url-link' : ''}`}
89+
href={href}
90+
rel='nofollow noreferrer noopener'
91+
target='_blank'
92+
>
93+
{children}
94+
</a>
9795
);
9896
},
9997
span: 'span',

0 commit comments

Comments
 (0)