#mermaid #mdbook #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

#1535 in Text processing

Apache-2.0 OR MIT

25KB
536 lines

mdbook-fishextract plugin

This plugin adds functionality to mdbook for extracting mermaid.

Install

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

[preprocessor.fishextract]
renderer = ["tectonic","markdown","latex"]
assets = "src/assets"

Prerequisites

  • npm install -g @mermaid-js/mermaid-cli which installs a binary mmdc which needs to be in your $PATH.

Syntax

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")

Dependencies

~17–29MB
~446K SLoC