fix: link (<a>) in messages not styled

This commit is contained in:
Divlo 2022-08-23 22:01:43 +02:00
parent 7ad3d226dc
commit 19fc29ad47
No known key found for this signature in database
GPG Key ID: 8F9478F220CE65E9

View File

@ -41,6 +41,14 @@ export const MessageText: React.FC<MessageContentProps> = (props) => {
rehypePlugins={[[emojiPlugin], [rehypeKatex]]} rehypePlugins={[[emojiPlugin], [rehypeKatex]]}
linkTarget='_blank' linkTarget='_blank'
components={{ components={{
a: (props) => {
return (
<a
className='text-green-800 hover:underline dark:text-green-400'
{...props}
/>
)
},
emoji: (props) => { emoji: (props) => {
return <Emoji value={props.value} size={20} /> return <Emoji value={props.value} size={20} />
}, },