| Crates.io | mdbook-embed |
| lib.rs | mdbook-embed |
| version | 0.2.0 |
| created_at | 2023-03-16 01:00:59.285996+00 |
| updated_at | 2023-03-19 07:34:20.881475+00 |
| description | A preprocessor that simplifies embedded URL |
| homepage | |
| repository | https://github.com/kumavale/mdbook-embed |
| max_upload_size | |
| id | 811084 |
| size | 59,824 |
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]