diff --git a/client/web/src/components/Markdown/render.tsx b/client/web/src/components/Markdown/render.tsx index 81d41f31..a8a7888f 100644 --- a/client/web/src/components/Markdown/render.tsx +++ b/client/web/src/components/Markdown/render.tsx @@ -47,8 +47,12 @@ export const Markdown: React.FC<{ iframe: (props) => { let src = props.src; - if (src?.includes('javascript')) { - return
not support run javascript
; + if (!src) { + return
; + } + + if (!src.startsWith('http')) { + return
only support http source
; } if (src && src.includes('?')) {