dylanowen / mdbook-graphviz

Mozilla Public License 2.0
44 stars 9 forks source link

Allow specifying custom graphviz arguments #89

Closed alek3y closed 4 months ago

alek3y commented 11 months ago

This should fix #88.

It reads the arguments option from the config file (or defaults to ["-Tsvg"]) and passes it down to call_graphviz. For example:

[preprocessor.graphviz]
arguments = ["-Tsvg", "-Grankdir=LR"]

Note: I haven't had much experience with lifetimes, so I trusted the compiler more or less.