From a39a55fb80edb8fefe248ca431b16ff543b82fe0 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sat, 6 Jan 2024 11:37:06 -0500 Subject: [PATCH] markdown in embeds --- src/components/messaging/MessageEmbed.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/messaging/MessageEmbed.tsx b/src/components/messaging/MessageEmbed.tsx index 9a1c7f7..c3d3d47 100644 --- a/src/components/messaging/MessageEmbed.tsx +++ b/src/components/messaging/MessageEmbed.tsx @@ -5,6 +5,8 @@ import { APIEmbed, EmbedType } from "@spacebarchat/spacebar-api-types/v9"; import classNames from "classnames"; import React from "react"; import { decimalColorToHex } from "../../utils/Utils"; +import Markdown from "../markdown/Markdown"; +import MarkdownRenderer from "../markdown/MarkdownRenderer"; import styles from "./Embed.module.css"; import EmbedMedia from "./EmbedMedia"; import { MESSAGE_AREA_PADDING, MessageAreaWidthContext } from "./MessageList"; @@ -139,7 +141,11 @@ function MessageEmbed({ embed }: Props) { )} - {embed.description &&
{embed.description}
} + {embed.description && ( +
+ +
+ )} {embed.fields && (
@@ -154,7 +160,9 @@ function MessageEmbed({ embed }: Props) { }} >
{field.name}
-
{field.value}
+
+ +
))}