From 183c61cfdca8ea915eefcec315a9e792259243c5 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Sun, 21 Apr 2024 21:23:26 -0400 Subject: [PATCH] Show lang icons --- Frontend/src/app/components/mdx.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Frontend/src/app/components/mdx.tsx b/Frontend/src/app/components/mdx.tsx index 14e5f8f..4d71d8d 100644 --- a/Frontend/src/app/components/mdx.tsx +++ b/Frontend/src/app/components/mdx.tsx @@ -19,6 +19,7 @@ import { stackoverflowDark, } from "react-syntax-highlighter/dist/esm/styles/hljs"; import { capitalize } from "@/lib/stringUtils"; +import Image from "next/image"; /** * The MDX components to style. @@ -94,7 +95,13 @@ const components: any = { {/* Language Icon */} -
+
+ {`${language} {capitalize(language)}