A preprocessor that simplifies embedded URL.
It turns this:
{{#embed https://www.youtube.com/watch?v=d66B35sT1gQ }}
into:
<iframe width="560" height="315" src="https://www.youtube.com/embed/d66B35sT1gQ"></iframe>
To install mdbook-embed
, use cargo:
cargo install mdbook-embed
Then add the following to book.toml
:
[preprocessor.embed]
- YouTube