如何将YouTube视频嵌入到GitHub Wiki页面上? [英] How can I embed a YouTube video on GitHub wiki pages?
问题描述
我对标记相当陌生(尽管非常容易上手).我正在研究一个程序包,并且正在尝试使Wiki页面看起来更好,作为帮助手册.我可以很容易地将YouTube视频链接插入Wiki页面,但是如何嵌入YouTube视频.我知道这不可能.
I am fairly new to markup (though it's extremely easy to pickup). I am working on a package and am trying to get the wiki pages looking nice as a help manual. I can insert a YouTube video link into the wiki page pretty easily but how do I embed a YouTube video. I know this may not be possible.
我已经阅读了可以使用HTML标记的内容,因此我尝试根据链接如下:
I have read you can use HTML tags so I tried embedding with HTML per this link as follows:
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/user/wwwLoveWatercom?v=BTRN1YETpyg" />
<param name="wmode" value="transparent" />
<embed src="http://www.youtube.com/user/wwwLoveWatercom?v=BTRN1YETpyg"
type="application/x-shockwave-flash"
wmode="transparent" width="425" height="350" />
</object>
并保存了页面,但没有任何反应.
And saved the page but nothing happened.
- 是否可以在GitHub Wiki页面上嵌入YouTube视频?
- 如果可以,怎么办?
推荐答案
无法直接嵌入视频,但是您可以放置链接到YouTube视频的图像:
It's not possible to embed videos directly, but you can put an image which links to a YouTube video:
[![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/YOUTUBE_VIDEO_ID_HERE/0.jpg)](https://www.youtube.com/watch?v=YOUTUBE_VIDEO_ID_HERE)
有关更多信息,请参见此Markdown备忘单在GitHub上.
For more information look at this Markdown cheatsheet on GitHub.
这篇关于如何将YouTube视频嵌入到GitHub Wiki页面上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!