mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 01:15:28 +00:00
fix(embed): exclusively use markdown renderer for text embeds
This commit is contained in:
@@ -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" ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user