import Markdown from 'react-markdown'
import remarkGfm from 'remark-gfm'
import classNames from 'classnames'
import HighlightedCodeBlock from '~/components/HighlightedCodeBlock'
const REMARK_PLUGINS = [remarkGfm]
export const ALLOWED_INLINE_ELEMENTS = [
'p',
'br',
'b',
'strong',
'i',
'em',
'a',
'code',
'ul',
'ol',
'li',
]
export default function RenderMarkdown({
value,
showCodeControls,
allowedElements,
}: {
value: string
showCodeControls?: boolean
allowedElements?: string[]
}) {
return (
) : (
{children}
)
},
}}
/>
)
}