With pretty Urls, “mytopic” lands in the following page: www.mywebsite.com/mytopic/.
So I need to reference the image as:
![](../images/myimage.png)
The image location is ../images/myimage.png instead of ./images/myimage.png.
However this is pretty annoying because it doesn’t corresponds to the real folder structure.
So rendering the markdowns with other tools (github, pandoc etc.) will not work.
Any idea?
Thanks!
I tried to place the image next to the content file:
|
|- _index.md
|- mytopic.md
- myimage.png
But this still doesn’t work because the document lands in www.mywebsite.com/mytopic/index.html while the image is at www.mywebsite.com/mytopic.png.
The only thing that works is:
In this case yes, I can reference my image locally.
However, I am developing a documentation with many sections, each sections is a markdown file. It seems heavyweight to create a folder for each section.
Thanks, so I guess the short answer is “not possible”.
The only way I see is to activate “Ugly URLs”.
In this case the markdown file is rendered as www.mywebsite.com/mytopic.html. So the image can be referenced locally.