mdbook-embedify 0.1.0

A rust based mdbook preprocessor plugin that allows you to embed apps to your book, like youtube, codepen and some other apps
mdbook-embedify-0.1.0 is not a library.
Visit the last successful build: mdbook-embedify-0.2.18

Mdbook Embedify

Crates.io Crates.io

This is a mdbook preprocessor plugin that allows you to embed apps to your book, like youtube, codepen and some other apps.

1. Installation

First, you need to install mdbook-embedify to your computer. You can install it from crates.io using cargo.

cargo install mdbook-embedify

After installation, add the following code to your book.toml file:

[preprocessor.embedify]

2. Usage

Then you can use embed macro to embed an app. The 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" %}

3. Examples

example

You can see a live demo and more detailed documentation here.