chore: sync main branch with develop (monorepo rename)
This commit is contained in:
182 files changed
+13333
-1308
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import React from "react"
|
||||
|
||||
interface MarkdownRendererProps {
|
||||
/** HTML string processed by vite-plugin-markdown */
|
||||
html: string
|
||||
/** Optional custom class name */
|
||||
className?: string
|
||||
}
|
||||
|
||||
export default function MarkdownRenderer({ html, className = "" }: MarkdownRendererProps) {
|
||||
return (
|
||||
<article
|
||||
className={`prose prose-slate max-w-none dark:prose-invert ${className}`}
|
||||
dangerouslySetInnerHTML={{ __html: html }}
|
||||
/>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user