fix: add custom disallowed elements to Markdown component and restore the default disallowed elements (#15057)
This commit is contained in:
parent
9962118dbd
commit
6c9d6a4d57
5 changed files with 10 additions and 3 deletions
|
|
@ -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']}
|
||||
/>
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue