3 个不稳定版本
0.1.0 | 2023年1月17日 |
---|---|
0.0.2 | 2023年1月12日 |
0.0.1 | 2023年1月12日 |
#1455 in 文本处理
25KB
536 行
mdbook-fishextract 插件
此插件为 mdbook
添加提取 mermaid
的功能。
安装
编译此 crate 并将 mdbook-fishextract
添加到您的搜索路径。
[preprocessor.fishextract]
renderer = ["tectonic","markdown","latex"]
assets = "src/assets"
先决条件
npm install -g @mermaid-js/mermaid-cli
,该命令安装一个二进制mmdc
,需要将其添加到您的$PATH
中。
语法
对于块方程渲染,使用以下语法
```mermaid
..
并将其替换为图像链接
}__{hash:10}.pdf "Your title")
依赖项
~16–29MB
~422K SLoC