问题描述
我对标记相当陌生(尽管它非常容易上手).我正在开发一个包,并试图让 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 标签,所以我尝试按照这个 link 如下:
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:
[](https://www.youtube.com/watch?v=YOUTUBE_VIDEO_ID_HERE)
- 有关 Markdown 的更多信息,请查看此 Markdown 备忘单 在 GitHub 上.
- 有关 Youtube 图片链接的更多信息 看看这个问题.
- For more information about Markdown look at this Markdown cheatsheet on GitHub.
- For more information about Youtube image links look this question.
这篇关于如何在 GitHub wiki 页面上嵌入 YouTube 视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!