mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-26 00:50:56 -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>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
{embed.description && (
|
{embed.description &&
|
||||||
<div className={styles.description}>
|
(embed.type === "Text" ? (
|
||||||
{embed.type === "Text" ? (
|
<Markdown content={embed.description} />
|
||||||
<Markdown content={embed.description} />
|
) : (
|
||||||
) : (
|
<div className={styles.description}>
|
||||||
embed.description
|
{embed.description}
|
||||||
)}
|
</div>
|
||||||
</div>
|
))}
|
||||||
)}
|
|
||||||
|
|
||||||
{largeMedia &&
|
{largeMedia &&
|
||||||
(embed.type === "Text" ? (
|
(embed.type === "Text" ? (
|
||||||
|
|
Loading…
Reference in a new issue