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> </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" ? (