Content descriptions can now be parsed as markdawn

This commit is contained in:
DrMint 2022-04-22 22:42:38 +02:00
parent 025e4c4d31
commit 51f050819e
1 changed files with 6 additions and 1 deletions

View File

@ -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}
</div>
{description && <InsetBox className="mt-8">{description}</InsetBox>}
{description && (
<InsetBox className="mt-8">
{<Markdawn text={description}></Markdawn>}
</InsetBox>
)}
</>
);
}