Embedding YouTube videos

We can use the Embedify preprocessor to embed YouTube videos.

We need to install Emebdify, add the following line to the book.toml file

[preprocessor.embedify]

and then we can embed youtube videos in the pages by adding a line where you'd include the ID of the YouTube video.

{% embed youtube id="YOUTUBE-ID" %}

See and example here: