This commit is contained in:
爱喝水的木子
2026-03-13 16:28:51 +08:00
commit bfdf4843e1
38 changed files with 9490 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import ReactMarkdown from "react-markdown";
import remarkGfm from "remark-gfm";
export function MarkdownViewer({ markdown }: { markdown: string }) {
return (
<article className="prose prose-slate max-w-none prose-a:text-brand-600 prose-img:rounded-xl">
<ReactMarkdown remarkPlugins={[remarkGfm]}>{markdown}</ReactMarkdown>
</article>
);
}