fix(embed): exclusively use markdown renderer for text embeds

This commit is contained in:
Paul Makles 2022-01-15 16:06:41 +00:00
parent 8eb2f4e7e3
commit 196bbe2634

View file

@ -135,15 +135,14 @@ export default function Embed({ embed }: Props) {
</a>
</span>
)}
{embed.description && (
<div className={styles.description}>
{embed.type === "Text" ? (
{embed.description &&
(embed.type === "Text" ? (
<Markdown content={embed.description} />
) : (
embed.description
)}
<div className={styles.description}>
{embed.description}
</div>
)}
))}
{largeMedia &&
(embed.type === "Text" ? (