Place this php file in the site/plugins folder of your kirby install. The plugin strips the video id from the end of both Vimeo and Youtube links.
Use the kirbytag like this:
(video: vimeo.com/79338229) (video: youtube.com/watch?v=0--NbrJX_xQ) (video: youtu.be/0--NbrJX_xQ)
The embed code is wrapped in a div with a class called "Flexible-container".
The coresponding CSS allows for fluid video embeds which scale to the width of the parent div.
For more information on kirbytags, see the Extending Kirbytext documentation.
Just realized that the built in (vimeo: ) and (youtube: ) tags now have a div wrapper with a class of video-container.
I guess the one slight difference is that this plugin adds some custom (hard coded )options to the Vimeo embed.
White link color, no title, no byline, just the video.