mdbook-embed

Crates.iomdbook-embed
lib.rsmdbook-embed
version0.2.0
sourcesrc
created_at2023-03-16 01:00:59.285996
updated_at2023-03-19 07:34:20.881475
descriptionA preprocessor that simplifies embedded URL
homepage
repositoryhttps://github.com/kumavale/mdbook-embed
max_upload_size
id811084
size59,824
Naoki Kumagai (kumavale)

documentation

README

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
Commit count: 26

cargo fmt