Standard markdown solution (not iFrame!)
Using an iframe is not an βobviousβ solution ... especially if your Markdown analyzer (or publishing platform) doesnβt support embedding content from another website ... Instead, you can "fake it" by adding a valid linked-image in your Markdown file using this format:
[](http://www.youtube.com/watch?v=YOUTUBE_VIDEO_ID_HERE "Video Title")
Markdown Explanation
If this section of the markdown looks complicated, break it into two parts:
picture

wrapped in a link
[link text](http//example.io/my-link "link title")
An example of using a valid YouTube markdown and thumbnail:

We get a thumbnail image directly from YouTube and contact the real video, so when a person clicks on the image / thumbnail, they get into the video.
The code:
[](https://www.youtube.com/watch?v=StTqXEQ2l-Y "Everything Is AWESOME")
OR If you want to give readers a visual hint that the image / thumbnail is actually a playable video, take your own screenshot of the video on YouTube and use it instead as a thumbnail.
Example of using a screenshot with video controls as a visual hint:

The code:
[](https://youtu.be/StTqXEQ2l-Y?t=35s "Everything Is AWESOME")
Clear benefits
Although this requires several additional steps ( a ) to take a screenshot of the video and ( b ) upload it so that you can use the image as a thumbnail, it has 3 obvious advantages :
- The person reading your markdown (or the resulting HTML page) has a visual hint that he can watch the video (video controls encourage clicks)
- You can select a specific frame in the video to use as a thumbnail (which makes your content more attractive )
- You can specify a specific time in the video from which playback will start when you click on the link . (in our case, from 35 seconds)
Creating a screenshot takes a few seconds, and for each OS there are keyboard shortcuts that copy the screenshot to the clipboard, which means that you can paste it for even faster loading.
Not only C#
And since this is a 100% standard markdown, it works everywhere (not just for the C# parser!) ... try it on GitHub, Redit or Ghost!
Vimeo
This approach also works with Vimeo video.
example

The code
[](https://vimeo.com/3514904 "Little red riding hood - Click to Watch!")
Notes:
- How to take a screenshot : http://www.take-a-screenshot.org/ ( all platforms !)
- Upload image thumbnail : after you take your screenshot, you can drag it to imgur.com to upload it and use it immediately as a thumbnail; couldn't be easier!
- YouTube thumbnail information. How to get thumbnail of YouTube video from YouTube API?
- Markdown format borrowed / changed / expanded from: Insert YouTube video
nelsonic Apr 25 '15 at 8:06 2015-04-25 08:06
source share