Embedding YouTube in mdBook?

Building a Rust Book to compliment a GitBook. The GitBook has words and embedded YouTube lectures, but no code. mdBook is great for code and words, but I haven't figured out how to embed YouTube videos. Anyone know how to do this? Thanks :slight_smile:

You should be able to paste the HTML directly alongside the Markdown.

Maybe I'm doing it wrong, but it just shows up as text when I use the embed url with the iframe. I can add images and links to YouTube videos fine, but the player isn't embedding so that videos play within the page rather than on YouTube.

confirmed pasting youtube embed html works (mdbook 0.3.7) - playback is playing inside the embedded video for me.