#mdbook #mermaid #graph

bin+lib mdbook-fishextract

A mdbook preprocessor which handles mermaid graphs, offline, requires mmdc

3 unstable releases

0.1.0 Jan 17, 2023
0.0.2 Jan 12, 2023
0.0.1 Jan 12, 2023

#10 in #mermaid

Download history 21/week @ 2024-02-26 51/week @ 2024-04-01

51 downloads per month

Apache-2.0 OR MIT

536 lines

mdbook-fishextract plugin

This plugin adds functionality to mdbook for extracting mermaid.


Compile this crate and add the mdbook-fishextract to your search path.

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


and replaces them by an image link

![mermaid graph {chapter}](src/assets/fishextract_{chapter|replace('.' -> '_')}__{hash:10}.pdf "Your title")


~422K SLoC