timofurrer / pandoc-plantuml-filter

Pandoc filter for PlantUML code blocks
https://pypi.org/project/pandoc-plantuml-filter
MIT License
104 stars 26 forks source link

Images should be regenerated every time #27

Open pixelsoup42 opened 10 months ago

pixelsoup42 commented 10 months ago

Hi, thanks for this tool. There is one annoying thing though, this check that only recreates the image if it does not already exist. But this means if I am working interactively and running pandoc after changing my diagrams, the changes won't be picked up. I would get rid of this check and generate images unconditionally.

Felixoid commented 10 months ago

I am not sure if you get it correctly. But if the diagram changes, then the filename is changed too. So, why do you think the same content should be generated over and over and over again?

pixelsoup42 commented 10 months ago

Yes you're right I misunderstood.

pixelsoup42 commented 10 months ago

Actually, no. The problem I am seeing is that if my plantuml schema has dependencies, like including a theme or a .iuml file, then the image needs to be regenerated even if the plantuml code itself has not changed, otherwise a change in the theme or other dependencies will not be picked up. The assumption that if the plantuml code does not change, then the generated drawing does not change, is not true in the general case.