Skip to content

kumavale/mdbook-embed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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