sytsereitsma / mdbook-plantuml

mdBook preprocessor to render PlantUML diagrams to png images in the book output directory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Images folder generated in the wrong path with multiple renders

Martin1887 opened this issue · comments

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.

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

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.