facelessuser / MarkdownPreview

Markdown preview and build plugin for Sublime Text https://facelessuser.github.io/MarkdownPreview/
Other
402 stars 53 forks source link

Video content cannot be displayed #173

Closed zhouxinghong closed 8 months ago

zhouxinghong commented 8 months ago

Video content cannot be displayed

When previewing md files in Chrome browser in github mode, the video content cannot be displayed.

<video controls muted preload="auto" src="https://xxxxxxx.mp4"> 
</video>

Windows 10 19044 Chrome is up to date Version 119.0.6045.124 (Official Build) (64-bit) VERSION 2.4.3

zhouxinghong commented 8 months ago

image

zhouxinghong commented 8 months ago

Hope this bugs can be fixed, thank you very much! 😜

facelessuser commented 8 months ago

This is probably because GitHub strips out the Video tags. If you use the Markdown option, it works fine. We don't do anything special with Video tags, so if they are not working, it is because of what GitHub is doing to them during parsing.

facelessuser commented 8 months ago

I verified locally using markdown for github_mode, it seems to strip the video tag and the src, and in gfm mode it removes the src. This is all GitHub's doing and is out of our control.