mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 08:26:22 +02:00
22 lines
434 B
TypeScript
22 lines
434 B
TypeScript
|
|
"use client";
|
||
|
|
|
||
|
|
import ReactMarkdown from "react-markdown";
|
||
|
|
import remarkGfm from "remark-gfm";
|
||
|
|
import "./markdown-viewer.css";
|
||
|
|
|
||
|
|
interface MarkdownViewerProps {
|
||
|
|
content: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export function MarkdownViewer({ content }: MarkdownViewerProps) {
|
||
|
|
return (
|
||
|
|
<div className="markdown-viewer-wrapper markdown-content">
|
||
|
|
<ReactMarkdown remarkPlugins={[remarkGfm]}>
|
||
|
|
{content}
|
||
|
|
</ReactMarkdown>
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
|