Update markdown.tsx

This commit is contained in:
Tao Wang 2024-11-15 03:28:05 -08:00 committed by GitHub
parent 11e1720be0
commit 47bc23876d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -265,7 +265,7 @@ export function Markdown(props: { content: string; className?: string }) {
}
},
]}
disallowedElements={['script', 'head', 'html', 'meta', 'link', 'style', 'body']}
disallowedElements={['script', 'iframe', 'head', 'html', 'meta', 'link', 'style', 'body']}
components={{
code: CodeBlock,
img: Img,