mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
fix: add custom disallowed elements to Markdown component and restore the default disallowed elements (#15057)
This commit is contained in:
@ -181,6 +181,7 @@ const ChunkContent: FC<IChunkContentProps> = ({
|
||||
<Markdown
|
||||
className='h-full w-full !text-text-secondary'
|
||||
content={question}
|
||||
customDisallowedElements={['input']}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
@ -50,6 +50,7 @@ const ChunkContent: FC<ChunkContentProps> = ({
|
||||
className,
|
||||
)}
|
||||
content={sign_content || content || ''}
|
||||
customDisallowedElements={['input']}
|
||||
/>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user