Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying custom graphviz arguments #89

Merged
merged 4 commits into from
May 8, 2024
Merged

Allow specifying custom graphviz arguments #89

merged 4 commits into from
May 8, 2024

Conversation

alek3y
Copy link
Contributor

@alek3y alek3y commented Sep 29, 2023

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.

src/preprocessor.rs Outdated Show resolved Hide resolved
@Cypher1 Cypher1 merged commit 1f89b36 into dylanowen:master May 8, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow use of cairo to render svgs
3 participants