"use client"; import ReactMarkdown from "react-markdown"; import rehypeHighlight from "rehype-highlight"; import remarkGfm from "remark-gfm"; interface PostContentProps { content: string; } export function PostContent({ content }: PostContentProps) { return (
{children}
),
code: ({ className, children, ...props }) => {
const isInline = !className;
if (isInline) {
return (
{children}
);
}
return (
{children}
);
},
}}
>
{content}