-
Hi, First, many thanks for developing this useful plug-in. I'm trying to use the plug-in for a documentation system. The way it is going to be organized would be that there are some source files as markdown files and there would be different sites that would use a combination of source files to generate a document. I have made a simple example in the following GitHub page if mine: https://github.com/Erfan-nia/Include-markdown-test It can be seen that the text is successfully imported but the picture is not being shown. Is there any solution to this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Thanks for opening this and the complete report. As you can see, this plugin is doing what is supposed to do. The relative link to the image is converted from
Indicates that your image is not part of your documentation files and that makes sense. If you don't agree, then where should Mkdocs put that file inside the generated site/ directory in case that we conclude that it should be added? Note that you don't need to use this plugin to report the same behaviour. |
Beta Was this translation helpful? Give feedback.
I'm totally aware of your intention. That solution is not consistent because what happens if another folder is included pointing to the same resource path? And this can be replicated without the plugin, so it is a Mkdocs limitation.
I'm not going to implement something like that, it breaks Mkdocs' security and encapsulation. As a workaround, use URLs in includes.