How to post YouTube videos using markdown

in #videos9 years ago (edited)

?

Video category, yay!

Use the following code, editing the YouTube id and title if you like where appropriate

[![IMAGE ALT TEXT](http://img.youtube.com/vi/YOUTUBE_VIDEO_ID_HERE/0.jpg)](http://www.youtube.com/watch?v=YOUTUBE_VIDEO_ID_HERE "Video Title")

For other video sites you can use a screenshot of the video as an image preview.

Source: http://stackoverflow.com/questions/14192709/is-it-possible-to-embed-youtube-vimeo-videos-in-markdown-using-a-c-sharp-markdow

Sort:  

Thanks for posting this, it would be nice if we could actually play the embedded videos on the site rather than linking out!

This post is outdated. Simply post a youtube link in the body and it will automatically detect and embed it.