mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-07 08:26:15 +00:00
10 lines
No EOL
384 B
TypeScript
10 lines
No EOL
384 B
TypeScript
import ReactMarkdown from "react-markdown";
|
|
import remarkGfm from "remark-gfm";
|
|
import { type LLMOutputComponent } from "@llm-ui/react";
|
|
|
|
|
|
// Customize this component with your own styling
|
|
export const MarkdownComponent: LLMOutputComponent = ({ blockMatch }) => {
|
|
const markdown = blockMatch.output;
|
|
return <ReactMarkdown remarkPlugins={[remarkGfm]}>{markdown}</ReactMarkdown>;
|
|
}; |