如何在 GitHub wiki 页面上嵌入 YouTube 视频? [英] How can I embed a YouTube video on GitHub wiki pages?

查看:38
本文介绍了如何在 GitHub wiki 页面上嵌入 YouTube 视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对标记相当陌生(尽管它非常容易上手).我正在开发一个包,并试图让 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.

  1. 是否可以在 GitHub wiki 页面上嵌入 YouTube 视频?
  2. 如果是,如何?

推荐答案

无法直接嵌入视频,但您可以放置​​链接到 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 的更多信息,请查看此 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 视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆