How can I embed a YouTube video on GitHub wiki pages?

后端 未结 7 1907
我寻月下人不归
我寻月下人不归 2020-12-02 04:01

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

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-02 04:33

    Adding a link with the thumbnail, originally used by YouTube is a solution, that works. The thumbnail, used by YouTube is accessible the following way:

    • if the official video link is: https://www.youtube.com/watch?v=5yLzZikS15k
    • then the thumbnail is: https://img.youtube.com/vi/5yLzZikS15k/0.jpg

    Following this logic, the code below produces flawless results:

提交回复
热议问题