add system role support for preset

This commit is contained in:
josc146
2024-03-25 16:08:29 +08:00
parent 16f2201d9f
commit d0ab9c7ec4
5 changed files with 44 additions and 18 deletions

View File

@@ -28,10 +28,10 @@ const MarkdownRender: FC<ReactMarkdownOptions & { disabled?: boolean }> = (props
return (
<div dir="auto" className="prose markdown-body" style={{ maxWidth: '100%' }}>
{props.disabled ?
<div style={{ whiteSpace: 'pre-wrap' }}>
<div style={{ whiteSpace: 'pre-wrap' }} className={props.className}>
{props.children}
</div> :
<ReactMarkdown
<ReactMarkdown className={props.className}
allowedElements={[
'div',
'p',