-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relative paths in content are not correctly handled #46
Comments
I have tested the tool on Gitlab Wiki pages, and the problem still exists here also. The path of an image must be relative to the Markdown file. I can create a working image link for the Wiki xor for the converter call, but not for both. |
Hello I've abandoned the idea of using this tool (github-wikito) due to the problem mentioned here above (seems that the image has to be stored in the root of the wiki; my example illustrates that problem). Now I'm using pandoc to convert a .md file to .html, .pdf, ... At this time, I convert one file but we can of course write small piece of code to first concatenate several .md files into one before creating the output file. Have a nice day. |
I'm reproducing this issue. My use case is tutorial documentation with lots of links from wiki pages to other wiki pages. |
using the following syntax
results in html like
and the images are displayed in the PDF. Using i.e.
results in
html and this translated to non-funuctioning link in the PDF.. |
Hello
There is incorrect management of relative links to images.
Let us imagine the situation:
Under my
wiki_root
folder, I've a sub-folder with my images.In my
/content/parameters.md
file, I put the following code![](./../images/img.png)
. To get the image, I need to go one folder up to retrieve theimages
folder..Below a preview from within vscode: the first image is displayed; it's normal, the path is correct.
On the other hand, the second image isn't displayed, normal tool, the path is incorrect.
But, the convert tool didn't understand. He can find the ... second image because seems to calculate paths based on the root folder of the wiki. This is wrong. The path is relative to the markdown document; not from the root of the repository.
Is it possible to solve this please ?
Thanks.
Below the result of the conversion when I remove the first (and yet correct) link:
The second image is displayed and it shouldn't be the case since the path is wrong.
Thanks a lot!
The text was updated successfully, but these errors were encountered: