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

后端 未结 7 1917
我寻月下人不归
我寻月下人不归 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:11

    Markdown does not officially support video embeddings but you can embed raw HTML in it. I tested out with GitHub Pages and it works flawlessly.

    1. Go to the Video page on YouTube and click on the Share Button
    2. Choose Embed
    3. Copy and Paste the HTML snippet in your markdown

    The snippet looks like:

        
    

    PS: You can check out the live preview here

提交回复
热议问题