Showdown's Youtube Extension

An extension to embed Youtube videos in showdown documents using markdown syntax
Introduction
This extension enables embedding youtube videos using markdown's image syntax. Instead of creating a new definition,
it borrows image syntax ![foo][bar.jpg] to create an inframe pointing to the desired video.
Although it uses the same syntax as images, only valid youtube video links are actually parsed.
Basically it looks for urls that start with:
http://www.youtube.com/watch?v= or youtube.com/watch?v=
http://www.youtube.com/embed/ or youtube.com/embed/
http://youtu.be/ or youtu.be/
Installation
npm install showdown-youtube
bower install showdown-youtube
Manual
You can also download the latest release zip or tarball and include it in your webpage, after showdown:
<script src="showdown.min.js">
<script src="showdown-youtube.min.js">
Enabling the extension
After including the extension in your application, you just need to enable it in showdown.
var converter = new showdown.Converter({extensions: ['youtube']});
Example
var converter = new showdown.Converter({extensions: ['youtube']}),
input = '';
html = converter.makeHtml(input);
console.log(html);
This should output the equivalent to:
<iframe src="//www.youtube.com/embed/dQw4w9WgXcQ?rel=0" frameborder="0" allowfullscreen></iframe>
License
These files are distributed under BSD license. For more information,
please check the LICENSE file in the source code.