Is there a way to incorporate YouTube videos into GitHub wiki documentation?

Hey everyone! I’m new to working with markup and I’m trying to make the wiki pages for my package look good as a help manual. I know how to add YouTube video links, but I’m wondering if it’s possible to actually embed the videos in the page.

I tried using some HTML code I found online, but it didn’t work when I saved the page. Here’s what I tried:

<div class="video-container">
  <iframe width="560" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen></iframe>
</div>

Can anyone tell me if it’s even possible to embed YouTube videos in GitHub wiki pages? If it is, how do I do it? I’d really appreciate any help or advice you can give me. Thanks!

I’ve been working with GitHub wikis for a while now, and unfortunately, embedding YouTube videos directly isn’t possible because GitHub’s wiki system uses a restricted markup language that doesn’t allow for iframe embeds or complex HTML. Instead of embedding the video, consider creating a clickable thumbnail that links to it. For example, you could upload a screenshot of the video to your wiki and then use that image as a hyperlink to the YouTube video. The markdown for doing this is:

Video Title

Although this method doesn’t embed the video directly, it remains the best workaround available.