Usage
Installation
There are two ways to install this preprocessor.
You can install it from crates.io using cargo.
cargo install mdbook-embedify
Or you can download the binary from releases page.
Then you can check your installation by running:
mdbook-embedify --version
After installation, add the following code to your book.toml
file:
[preprocessor.embedify]
And that's it! You can now use embed
macro to embed apps to your book.
Syntax
The basic syntax is like this:
{% embed app options[] %}
options are key-value based array seperated by space and its value must be wrapped by quotes.
For example:
{% embed codepen user="MR-Addict" slug="NWBOqKw" height="600" theme="dark" loading="lazy" %}
See some examples at apps section.