"use client" import ReactMarkdown from "react-markdown" import remarkGfm from "remark-gfm" interface MarkdownPreviewProps { content: string } export function MarkdownPreview({ content }: MarkdownPreviewProps) { return (
{children}
, strong: ({ children }) => {children}, em: ({ children }) => {children}, code({ inline, className, children, ...props }) { if (inline) { return (
{children}
)
}
// block code
return (
{children}
{children}), ul: ({ children }) =>
Start typing to see the magic happen...
Your markdown will appear here in real-time!