Closed xu4wang closed 7 years ago
Thanks, this looks like a bug! I will fix it
It comes with the fact that you're using relative urls for your image
/wiki/sandbox
so image will be /wiki/assets/payer1.jpg
/pages/sandbox/edit
so image will be /pages/sandbox/assets/payer1.jpg
@claudioc 3 ways to solve this
../../wiki/
to all relative urls/pages/name/edit
for edition to be more /wiki/page?edit
@xu4wang if you use /wiki/assets/payer1.jpg
you will not be bothered anymore
@claudioc I edit my first post, I got some paths wrong.
@JSteunou @xu4wang I just wrote a wiki page to describe the problem and the solution :)
Thanks to you both!
https://github.com/claudioc/jingo/wiki/add-images-to-the-Jingo-own-repository
I put a picture in the git repo under assets directory, and put below in the markdown page "sandbox.md" for testing:
The picture is displayed in the sandbox page, and I noticed the piture URL is correct:
However, If I preview the sandbox page during editing, the picture is not displayed, and the URL is:
I think there is something wrong during preview?
Thanks, Xu