qqzsxyz / vimwiki

Automatically exported from code.google.com/p/vimwiki
0 stars 0 forks source link

Full Path In HTML When Transcluding Images #396

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Transclude a local image using the following syntax:

    {{local:./images/foo.jpg}}

What is the expected output? What do you see instead?

Expected HTML output:

    <img src="./images/foo.jpg">

Actual HTML output:

    <img src="file://c:\some\path/./images/foo.jpg">

The "expected" portion about is how images render using the 1.3 version of 
Vimwiki when you use a relative path.

What version of the product are you using? On what operating system?

2.0.1 on Windows XP.

Please provide any additional information below.

The problem here isn't the folder separator. The issue is that relative paths 
are being converted into full paths. Even if the paths worked, I would still 
not be able to host the HTML version of my wiki on a different server because 
the paths would not match.

Thanks and keep up the good work!

Original issue reported on code.google.com by tom.p...@gmail.com on 27 Dec 2012 at 2:39

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hmmm ... I believe what you want can be accomplished with the schemeless format 
 {{images/foo.jpg}} which produces <img src="images/foo.jpg" />

Original comment by stu.andrews on 27 Dec 2012 at 8:47