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

mdbook Failling to render diagrams #57

Closed TeomanEgeSelcuk closed 1 year ago

TeomanEgeSelcuk commented 1 year ago

Hi I have installed the mdbook-plantuml v0.8.0 and am running on mdbook v0.4.21 within a Windows 10 Version 2004 . I get the error message on the markdown page for the plantuml diagram that I have placed below. So the webpage on localhost:3000 shows the following error:

PlantUML rendering error: Failed to render inline diagram (Failed to generate PlantUML diagrams, PlantUML exited with code 1 ('plantuml.exe' is not recognized as an internal or external command, operable program or batch file. ).).

I used the following plantuml diagram from the usage section of this repository:

@startuml
A --|> B
@enduml

Contents of book.toml:

[book]
authors = []
language = "en"
multilingual = false
src = "src"

[preprocessor.mermaid]
command = "mdbook-mermaid"

[preprocessor.plantuml]
plantuml-cmd="plantuml.exe"

[output]

[output.html]
additional-js = ["mermaid.min.js", "mermaid-init.js"]

How would I be able to fix this?