mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-09 16:53:36 -05:00
fix(embed): exclusively use markdown renderer for text embeds
This commit is contained in:
parent
8eb2f4e7e3
commit
196bbe2634
1 changed files with 8 additions and 9 deletions
|
@ -135,15 +135,14 @@ export default function Embed({ embed }: Props) {
|
|||
</a>
|
||||
</span>
|
||||
)}
|
||||
{embed.description && (
|
||||
<div className={styles.description}>
|
||||
{embed.type === "Text" ? (
|
||||
<Markdown content={embed.description} />
|
||||
) : (
|
||||
embed.description
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
{embed.description &&
|
||||
(embed.type === "Text" ? (
|
||||
<Markdown content={embed.description} />
|
||||
) : (
|
||||
<div className={styles.description}>
|
||||
{embed.description}
|
||||
</div>
|
||||
))}
|
||||
|
||||
{largeMedia &&
|
||||
(embed.type === "Text" ? (
|
||||
|
|
Loading…
Reference in a new issue