This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins
directory.
{% youtube oHg5SJYRHA0 %}
You can also specify a height and width. If you do not, it defaults to 560 x 420.
{% youtube oHg5SJYRHA0 500 400 %}
I had to make two minor edits for this to work.
Line 2:
and line 24:
The first edit ensures that the match groups line up for optional width + height args, and the second escapes the ampersand and adds whitespace to the iframe to prevent text below the video being cut off (ref).
Anyway, thanks for posting this gist!