It's not really possible to properly embed a video in a Github comment, pull request or issue like it's possible for images for instance. So if you want to put a video in a Github pull request (I do that quite often), you have to upload it to a video hosting service like Youtube and then you can put the link in the description. This is not what I would call embedding a video but at least it's simple and effective.
2010: The 'Github Flavored Markdown' doesn't support this kind of feature for any page:An old support thread 'Embed YouTube videos in markdown files' stated: With pages.github.io, yes, everywhere else, no. (Note: as detailed in 'Github Top-Level Project Page', github.io is the new domain for user and organization pages since April 2013.The page GitHub publication is presented here). 👉 Become A VS Code SuperHero Today: Get FREE AI-powered code completions from Kite: https://www.kite.com/get-kite/?utmmedium=refe. Get code examples like 'add gif to readme github' instantly right from your google search results with the Grepper Chrome Extension. Prettify your github profile using this amazing readme generator. Prettify your github profile using this amazing readme generator. GitHub Profile README Generator. Star this repo 0. Fork on GitHub 0. (GitHub Action) Support. Generate README.
Lately, I discovered on Stackoverflow a much better solution where the simple text link to the video hosting service is replaced by a thumbnail generated by the video platform. In markdown, for Youtube this gives:
Of course, VID
should be replaced by the actual Youtube video id. This is still not embedding a video but that's a bit nicer and a much better incentive to click to watch the video :-) The only problem is that it's a tad long to type and to remember. That's why I decided to write a Greasemonkey script to simplify that. Actually, at first I wanted to write a super simple bookmarklet but Firefox has a very annoying issue where bookmarklets are broken on Content Security Policy enabled website like on Github :-(
Anyway, the Greasemonkey script is available on Github in dpobel/github-add-youtube-video
. To use it, you first need to install Greasemonkey and then just load the addvideo.user.js
in your browser, it should ask if you want to install that script. After doing that, the Github markdown editor should get a shiny new button that is able to transform any Youtube URL to the previous code snippet, here is the script in action:
If nothing is selected in the textarea, hitting button will just prompt the user for a Youtube URL to embed. This script should also work in Greasemonkey clones for Chrome, though I did not test it.
Open source powers software on a planetary scale: 99% of code is built on it. The rewards and challenges of creating open source are deeply familiar to the maintainers and developers who create it, but they often go unseen by others. We read a lot about the preeminence of software, less so about the communities of people pouring their efforts and passions into it.
This is why we’re launching The ReadME Project, a new space for the community to share their stories, and to learn from each other. Today, and throughout the coming months, you’ll read stories of personal growth, professional challenges, and lessons learned—the journeys you might not see behind projects you probably use every day.
We’re excited and grateful that the first profiles feature Henry Zhu, Samson Goddy, Sonia John, Ovilia Zhang, and Dirk Lemstra. Their stories are live right now, ready for you to explore, and there are so many more to come. Nominate an inspiring developer whose work you’ve been following or unsung contributors that have done great things for your project.
Github Readme Code
We hope you take something constructive from these personal profiles and merge it with your own story. Open source is incredible, uplifting, and collaborative, but it’s also imperfect. All of us can learn from the creativity, grit, and perseverance of the individuals who build it.
Youtube Video In Github Readme
The ReadME Project features the stories of the people behind open source. We want this to be an engaging destination for you, so please send us feedback and contribute your ideas that can inspire and inform all of us. We’ll continue to shine the light on individuals, but you can expect us to experiment with some new projects along the way. We can’t wait to hear what you think!