Thanks Sebastien!

Sometimes its the smallest things; in this case >.<
A single point, and figures work in my setup.

That is: [[./sites/a.png]]

becomes: <img src="./sites/a.png"  alt="a.png"/>

------------------------------

Alas, FILES do not now behave the same way.

Using M-x org-export-dispatch h
this:
    [[./sites/my-file][My link]]

becomes:
    <a href="file://./sites/my-file">My link</a>


So, org-export-dispatch (on Windows), adds
"file://"   if the first char is ".", and it adds
"file://g:" if the first char is "/".

(With "g:" the root drive letter.)

Still hoping for a switch that will add [nothing].

+1 for solving the img challenge!

-BC



> Hi William,
>
> William Crandall wrote:
> >* 3. Image and file prefixes are as they were.*
> >
> >* This (image):*
> >
> >*    [[/sites/a.png]]*
> >
> >* becomes:*
> >
> >*    <img src="g:/sites/a.png"/>*
> >
> >* And this (file):*
> >
> >*    [[/sites/my-file][My link]]*
> >
> >* becomes:*
> >
> >*    <a href="file://g:/sites/my-file">My link</a>*
> >
> >
> >* I'd love an option to "change it not" for both, so that*
> >* neither "g:" nor "file://g:" is added to "/...".*
> >
> >* I could strip them out, after exporting, but I think*
> >* this is an option that others would also value.*
> >
> >
> >* (External links, to an "http://...";;, work fine.)*
>
> A quick note on this one:
>
> I think adding "." does work, so use "./sites/a.png" instead.
>
> Dunno if that suits your need, though.
>
> Best regards,
>   Seb
>
> --
> Sebastien Vauban
>
>

Reply via email to