Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 818 Bytes

README.md

File metadata and controls

42 lines (27 loc) · 818 Bytes

mdbook-embed

Actions Status Crates.io License

A preprocessor that simplifies embedded URL.

Example

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>

Installation

To install mdbook-embed, use cargo:

cargo install mdbook-embed

Then add the following to book.toml:

[preprocessor.embed]

Support services

  • YouTube
  • Twitter
  • Instagram