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 dfa47027a6
commit 789b52f6b7

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} />
) : ( ) : (
embed.description <div className={styles.description}>
)} {embed.description}
</div> </div>
)} ))}
{largeMedia && {largeMedia &&
(embed.type === "Text" ? ( (embed.type === "Text" ? (