feat(Markdown): disallow iframe elements in Markdown rendering #4059

This commit is contained in:
kangfenmao 2025-03-28 21:45:47 +08:00
parent 21f1b8b373
commit da0db73916

View File

@ -83,6 +83,7 @@ const Markdown: FC<Props> = ({ message, citationsData }) => {
remarkPlugins={[remarkMath, remarkGfm]}
className="markdown"
components={components()}
disallowedElements={['iframe']}
remarkRehypeOptions={{
footnoteLabel: t('common.footnotes'),
footnoteLabelTagName: 'h4',