Embedding YouTube in mdBook?

#1

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:

0 Likes

#2

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

0 Likes

#3

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.

0 Likes