markdown-it-video
markdown-it plugin for embedding hosted videos.
Usage
Enable plugin
var md = html: true linkify: true typography: true;
Inline style
This plugin is made to work in the inline style. If you'd like a block-style, you may be interested in https://github.com/rotorz/markdown-it-block-embed
YouTube
@[youtube](dQw4w9WgXcQ)
is interpreted as
Alternately, you could use a number of different YouTube URL formats rather than just the video id.
@[youtube](http://www.youtube.com/embed/dQw4w9WgXcQ)@[youtube](https://www.youtube.com/watch?v=dQw4w9WgXcQ&feature=feedrec_centerforopenscience_index)@[youtube](http://www.youtube.com/user/IngridMichaelsonVEVO#p/a/u/1/QdK8U-VIH_o)@[youtube](http://www.youtube.com/v/dQw4w9WgXcQ?fs=1&hl=en_US&rel=0)@[youtube](http://www.youtube.com/watch?v=dQw4w9WgXcQ#t=0m10s)@[youtube](http://www.youtube.com/embed/dQw4w9WgXcQ?rel=0)@[youtube](http://www.youtube.com/watch?v=dQw4w9WgXcQ)@[youtube](http://youtu.be/dQw4w9WgXcQ)
Vimeo
@[vimeo](19706846)
is interpreted as
Alternately, you could use the url instead of just the video id.
@[vimeo](https://vimeo.com/19706846)@[vimeo](https://player.vimeo.com/video/19706846)
Vine
@[vine](etVpwB7uHlw)
is interpreted as
Alternately, you could use the url, or even the whole embed tag instead of just the video id.
@[vine](https://vine.co/v/etVpwB7uHlw/embed/simple)@[vine](https://vine.co/v/etVpwB7uHlw/embed/postcard?audio=1)@[vine](<iframe src="https://vine.co/v/etVpwB7uHlw/embed/simple?audio=1" width="600" height="600" frameborder="0"></iframe><script src="https://platform.vine.co/static/scripts/embed.js"></script>)
Prezi
@[prezi](1kkxdtlp4241)
is interpreted as
Alternately, you could use the url.
@[prezi](https://prezi.com/1kkxdtlp4241/valentines-day/)@[prezi](https://prezi.com/e3g83t83nw03/destination-prezi-template/)@[prezi](https://prezi.com/prg6t46qgzik/anatomy-of-a-social-powered-customer-service-win/)
OSF
This plugin allows you to use the OSF's Modualar File Renderer or the MFR to embed video or other files into your markdown assuming your page has mfr.js and mfr.css loaded.
@[osf](kuvg9)
is interpreted as
Alternately, you could use the url.
@[osf](https://mfr.osf.io/render?url=https://osf.io/kuvg9/?action=download)
Options