2 unstable releases
0.2.0 | Mar 19, 2023 |
---|---|
0.1.0 | Mar 16, 2023 |
#900 in Text processing
18KB
103 lines
mdbook-embed
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
Dependencies
~11–22MB
~331K SLoC