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

Images folder generated in the wrong path with multiple renders #58

Open Martin1887 opened 1 year ago

Martin1887 commented 1 year ago

Using multiple renders the image folder is created in the first rendered meanwhile it should be created in its parent folder. Therefore, images are not shown in any of output renderers.

Thanks and Regards.

sytsereitsma commented 1 year ago

Not sure what you mean here. Can you give an example book and steps to reproduce?

Martin1887 commented 1 year ago

In your book.toml you can specify more than one renderer. The renderers natively supported are output.html and output.markdown (https://rust-lang.github.io/mdBook/format/configuration/renderers.html).

So, if you write the following sections in your book.toml file, the images folder will be generated in the html folder but paths to that folder begin with ../, so images are not found:

[output.html]

[output.markdown]

Note that the path to the images folder is correct but the images folder is not where it should be but inside the html folder.

Regards.