fix: remove markdown text
This commit is contained in:
parent
5ad716c495
commit
d81fd7df47
|
@ -2,13 +2,19 @@ import ReactMarkdown from 'react-markdown'
|
|||
|
||||
import MarkdownLink from './MarkdownLink'
|
||||
import MarkdownText from './MarkdownText'
|
||||
import MarkdownCode from './MarkdownCode'
|
||||
|
||||
type MarkdownProps = {
|
||||
children: string
|
||||
}
|
||||
|
||||
const Markdown = ({ children }: MarkdownProps) => {
|
||||
return <ReactMarkdown children={children} components={{ a: MarkdownLink, p: MarkdownText }} />
|
||||
return (
|
||||
<ReactMarkdown
|
||||
children={children}
|
||||
components={{ a: MarkdownLink}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
export default Markdown
|
||||
|
|
Loading…
Reference in New Issue