Files
triggershell/app/src/components/docs/markdown-viewer.tsx
T

11 lines
368 B
TypeScript
Raw Normal View History

2026-08-16 00:54:15 +02:00
import ReactMarkdown from "react-markdown";
import remarkGfm from "remark-gfm";
export function MarkdownViewer({ content }: { content: string }) {
return (
<div className="prose prose-neutral dark:prose-invert max-w-none prose-pre:bg-muted prose-pre:text-foreground">
<ReactMarkdown remarkPlugins={[remarkGfm]}>{content}</ReactMarkdown>
</div>
);
}