OPC
This commit is contained in:
10
components/MarkdownViewer.tsx
Normal file
10
components/MarkdownViewer.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user