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
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 binarymmdc
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