yari icon indicating copy to clipboard operation
yari copied to clipboard

chore: add optional title, width, height attrs to YouTube embed

Open bsmth opened this issue 1 year ago • 0 comments

Summary

This PR adds a few more parameters to the YouTube embed macro.

Problem

Currently the title, width and height are hardcoded, so it would be nice to be able to customize these.

Solution

Add three optional parameters that fall back to current hardcoded values if not given.

Screenshots

image

How did you test this change?

{{EmbedYouTube("hs3piaN4b5I", "Awesome Flexbox video", 200, 100)}}
yarn && yarn dev

bsmth avatar Feb 13 '24 08:02 bsmth