Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added shortcode for embedding YouTube videos at 16:9 #17

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

moppius
Copy link
Contributor

@moppius moppius commented Jul 28, 2023

I figured it'd be nice to support YouTube embeds neatly out-of-the-box - please point me in the right direction if this is already supported and I missed it!

Example project .md would look like this, nice and simple:

# Teaser trailer

The footage for this trailer was all captured in real-time at 30fps using ray-traced reflections in an internal prototype engine.

{{ youtube(id="LXo0WdlELJk") }}

Ends up looking something like this:
image

You can also supply a custom class argument if you want to style it further.

@moppius
Copy link
Contributor Author

moppius commented Jul 28, 2023

I recommend squashing & merging this if you accept it, since I messed up the spacing and had to make two commits! 🤦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant