feat(components): create MdxComponents for custom rendering of MDX content

This commit is contained in:
cfngc4594 2025-03-07 11:36:53 +08:00
parent c0a876322c
commit 9eb6f89587

View File

@ -0,0 +1,6 @@
import { HTMLAttributes } from "react";
import { Pre } from "@/components/content/pre";
export const MdxComponents = {
pre: (props: HTMLAttributes<HTMLPreElement>) => <Pre {...props} />,
};