mirror of
https://github.com/langgenius/webapp-conversation.git
synced 2025-12-21 05:16:38 +08:00
fix: assistant answer pb
This commit is contained in:
18
app/components/base/streamdown-markdown.tsx
Normal file
18
app/components/base/streamdown-markdown.tsx
Normal file
@ -0,0 +1,18 @@
|
||||
'use client'
|
||||
import { Streamdown } from 'streamdown'
|
||||
import 'katex/dist/katex.min.css'
|
||||
|
||||
interface StreamdownMarkdownProps {
|
||||
content: string
|
||||
className?: string
|
||||
}
|
||||
|
||||
export function StreamdownMarkdown({ content, className = '' }: StreamdownMarkdownProps) {
|
||||
return (
|
||||
<div className={`streamdown-markdown ${className}`}>
|
||||
<Streamdown>{content}</Streamdown>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default StreamdownMarkdown
|
||||
Reference in New Issue
Block a user