From 51f050819e6d916581d1aed2f2847b2606c6cd65 Mon Sep 17 00:00:00 2001 From: DrMint Date: Fri, 22 Apr 2022 22:42:38 +0200 Subject: [PATCH] Content descriptions can now be parsed as markdawn --- src/components/Content/ThumbnailHeader.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/Content/ThumbnailHeader.tsx b/src/components/Content/ThumbnailHeader.tsx index b4608d5..7512e09 100644 --- a/src/components/Content/ThumbnailHeader.tsx +++ b/src/components/Content/ThumbnailHeader.tsx @@ -1,6 +1,7 @@ import Chip from "components/Chip"; import Img, { ImageQuality } from "components/Img"; import InsetBox from "components/InsetBox"; +import Markdawn from "components/Markdown/Markdawn"; import { GetContentQuery, UploadImageFragment } from "graphql/generated"; import { AppStaticProps } from "queries/getAppStaticProps"; import { prettyinlineTitle, prettySlug, slugify } from "queries/helpers"; @@ -96,7 +97,11 @@ export default function ThumbnailHeader(props: Props): JSX.Element { )} {languageSwitcher} - {description && {description}} + {description && ( + + {} + + )} ); }