fix: [code-1321]: fix issue on webm (#970)

This commit is contained in:
Calvin Lee 2024-01-17 00:27:14 +00:00 committed by Harness
parent 5869c132e6
commit b567c5f471

View File

@ -141,7 +141,7 @@ export function MarkdownViewer({ source, className, maxHeight, darkMode }: Markd
} }
}} }}
rehypePlugins={[ rehypePlugins={[
rehypeVideo, [rehypeVideo, { test: /\/(.*)(.mp4|.mov|.webm|.mkv|.flv)$/, details: null }],
[rehypeExternalLinks, { rel: ['nofollow noreferrer noopener'], target: '_blank' }] [rehypeExternalLinks, { rel: ['nofollow noreferrer noopener'], target: '_blank' }]
]} ]}
/> />