Crates.io | mdbook-fishextract |
lib.rs | mdbook-fishextract |
version | 0.1.0 |
source | src |
created_at | 2023-01-12 17:22:40.973003 |
updated_at | 2023-01-17 11:12:13.663523 |
description | A mdbook preprocessor which handles mermaid graphs, offline, requires `mmdc` |
homepage | |
repository | https://github.com/drahnr/fancybook/mdbook-fishextract |
max_upload_size | |
id | 757348 |
size | 49,130 |
This plugin adds functionality to mdbook
for extracting mermaid
.
Compile this crate and add the mdbook-fishextract
to your search path.
[preprocessor.fishextract]
renderer = ["tectonic","markdown","latex"]
assets = "src/assets"
npm install -g @mermaid-js/mermaid-cli
which installs a binary mmdc
which needs to be in your $PATH
.For block equation rendering use the following syntax
```mermaid
..
and replaces them by an image link
![mermaid graph {chapter}](src/assets/fishextract_{chapter|replace('.' -> '_')}__{hash:10}.pdf "Your title")