fix: add custom disallowed elements to Markdown component and restore the default disallowed elements (#15057)

This commit is contained in:
Wu Tianwei
2025-03-06 10:57:49 +08:00
committed by GitHub
parent 9962118dbd
commit 6c9d6a4d57
5 changed files with 10 additions and 3 deletions

View File

@@ -181,6 +181,7 @@ const ChunkContent: FC<IChunkContentProps> = ({
<Markdown
className='h-full w-full !text-text-secondary'
content={question}
customDisallowedElements={['input']}
/>
)
}

View File

@@ -50,6 +50,7 @@ const ChunkContent: FC<ChunkContentProps> = ({
className,
)}
content={sign_content || content || ''}
customDisallowedElements={['input']}
/>
}