fix: remove markdown text

This commit is contained in:
RadoslavDimchev 2023-10-26 09:21:26 +03:00
parent 5ad716c495
commit d81fd7df47
1 changed files with 7 additions and 1 deletions

View File

@ -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