sytsereitsma / mdbook-plantuml

mdBook preprocessor to render PlantUML diagrams to png images in the book output directory
MIT License
76 stars 14 forks source link

Can rendering failures be caught at build time? #84

Open ophilli opened 7 months ago

ophilli commented 7 months ago

Currently if I have a plantuml diagram that has a syntax error, or if there is some issue with my plantuml executable the only way to know is to load my document & see that the plantuml rendering failed.

It would be nice for mdbook build to fail and alert me that my plantuml was bad.

ophilli commented 7 months ago

Looks like mdbook's preprocessor trait is expecting a result, and mdbook-plantuml could be extended to return an error if the rendering had failed.