diff --git a/Frontend/bun.lockb b/Frontend/bun.lockb
index 3577d06..d7e1f5a 100644
Binary files a/Frontend/bun.lockb and b/Frontend/bun.lockb differ
diff --git a/Frontend/package.json b/Frontend/package.json
index a941387..c3ea664 100644
--- a/Frontend/package.json
+++ b/Frontend/package.json
@@ -37,6 +37,7 @@
"clipboard-copy": "^4.0.1",
"clsx": "^2.1.0",
"lucide-react": "^0.372.0",
+ "mdast-util-frontmatter": "^2.0.1",
"moment": "^2.30.1",
"next": "14.2.2",
"next-plausible": "^3.12.0",
diff --git a/Frontend/src/app/components/mdx.tsx b/Frontend/src/app/components/mdx.tsx
index d5b7bee..4e814a1 100644
--- a/Frontend/src/app/components/mdx.tsx
+++ b/Frontend/src/app/components/mdx.tsx
@@ -15,25 +15,31 @@ import {
* The MDX components to style.
*/
const components: any = {
- h1: ({ children }: { children: ReactNode }) => (
+ h1: ({ children }: { children: ReactNode }): ReactElement => (
{children}
),
- h2: ({ children }: { children: ReactNode }) => (
+ h2: ({ children }: { children: ReactNode }): ReactElement => (
{children}
),
- h3: ({ children }: { children: ReactNode }) => (
+ h3: ({ children }: { children: ReactNode }): ReactElement => (
{children}
),
- h4: ({ children }: { children: ReactNode }) => (
+ h4: ({ children }: { children: ReactNode }): ReactElement => (
{children}
),
- h5: ({ children }: { children: ReactNode }) => (
+ h5: ({ children }: { children: ReactNode }): ReactElement => (
{children}
),
- h6: ({ children }: { children: ReactNode }) => (
+ h6: ({ children }: { children: ReactNode }): ReactElement => (
{children}
),
- a: ({ href, children }: { href: string; children: ReactNode }) => (
+ a: ({
+ href,
+ children,
+ }: {
+ href: string;
+ children: ReactNode;
+ }): ReactElement => (
),
- p: ({ children }: { children: ReactNode }) => (
+ p: ({ children }: { children: ReactNode }): ReactElement => (
{children}
),
- ul: ({ children }: { children: ReactNode }) => (
+ ul: ({ children }: { children: ReactNode }): ReactElement => (
),
// Tables
- // table: ({ children }: { children: any }) => (
- //
- //
- //
- // {children?.[0].props?.children?.props?.children}
- //
- //
- // {children?.[1].props?.children}
- //
- // ),
- // th: ({ children }: { children: ReactNode }) => (
- // {children}
- // ),
- // td: ({ children }: { children: ReactNode }) => (
- // {children}
- // ),
+ table: ({ children }: { children: any }) => (
+
+
+
+ {children?.[0].props?.children?.props?.children}
+
+
+ {children?.[1].props?.children}
+
+ ),
+ th: ({ children }: { children: ReactNode }) => (
+ {children}
+ ),
+ td: ({ children }: { children: ReactNode }) => (
+ {children}
+ ),
};
/**
@@ -83,9 +89,6 @@ export const CustomMDX = (props: any): ReactElement => (
options={{
mdxOptions: {
remarkPlugins: [remarkGfm],
- remarkRehypeOptions: {
- passThrough: ["link"],
- },
},
}}
/>