You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if there was/could-be an option to preserve the source and place the outputted image below, rather than replace the source code with the image?
Oftentimes I was to generate an graphviz diagram, but I also want to show the dot code that produced the diagram.
Right now the only solution I can think of is duplicating the source code, having two copies means I have to make sure that they're in sync.
The text was updated successfully, but these errors were encountered:
Bruno-366
changed the title
do not replace source with image
feature request: option to do not replace source with image
Aug 12, 2021
I'm not sure how feasible that is, because I think a block macro can only generate single block. I'll have a look.
In the meantime, a simple solution that avoids the duplication is to put your dot code in a separate file (e.g., diagram.dot) and then use macros to produce the two blocks you want:
I was wondering if there was/could-be an option to preserve the source and place the outputted image below, rather than replace the source code with the image?
Oftentimes I was to generate an graphviz diagram, but I also want to show the dot code that produced the diagram.
Right now the only solution I can think of is duplicating the source code, having two copies means I have to make sure that they're in sync.
The text was updated successfully, but these errors were encountered: