| import ReactMarkdown from "react-markdown"; | |
| import remarkGfm from "remark-gfm"; | |
| import rehypeHighlight from "rehype-highlight"; | |
| import "highlight.js/styles/github-dark.css"; | |
| interface MarkdownComponentProps { | |
| content: string; | |
| } | |
| export function MarkdownComponent({ content }: MarkdownComponentProps) { | |
| return ( | |
| <div className="prose prose-sm dark:prose-invert max-w-none"> | |
| <ReactMarkdown remarkPlugins={[remarkGfm]} rehypePlugins={[rehypeHighlight]}> | |
| {content} | |
| </ReactMarkdown> | |
| </div> | |
| ); | |
| } |
Xet Storage Details
- Size:
- 524 Bytes
- Xet hash:
- 1efa57a4d5f69fc2bb3661aed1d215eb5d7204ba509cb5438de82cd5b1be5fc9
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.