Le 21/09/15 à 08h30, Nicolas Goaziou <m...@nicolasgoaziou.fr> a écrit :

> Hello,
>
> Denis Bitouzé <dbitouze-39zsbgiqgt5gwvitb5q...@public.gmane.org> writes:
>
>> BTW, do you agree with the other issue I reported:
>>
>> #+begin_src org
>> - A [[/rootsite/somepage/][(relative) page]].
>> - A [[/rootsite/somepage][(relative) page]].
>> #+end_src
>>
>> is exported as:
>>
>> #+begin_src markdown
>> -   A [(relative) page](file:///rootsite/somepage/).
>> -   A [(relative) page](file:///rootsite/somepage).
>> #+end_src
>>
>> whereas, IMHO, the expected behavior should be:
>>
>> #+begin_src markdown
>> -   A [(relative) page](/rootsite/somepage/).
>> -   A [(relative) page](/rootsite/somepage).
>> #+end_src
>
> Not really. If a link URI starts with "/", it is assumed to be an
> absolute file name.

Is it a shared rule? Using relative file names is rather common in
CMS...

And this rule is not the same applied for image files:

#+begin_src org
[[/rootsite/somepath/file.png]]
#+end_src

leads to:

#+begin_src markdown
![img](/rootsite/somepath/file.png)
#+end_src

and not to:

#+begin_src markdown
![img](file:///rootsite/somepath/file.png)
#+end_src

> Try prepending http:// to your URL.

#+begin_src org
- A [[http:///rootsite/somepage/][(relative) page]].
#+end_src

leads to:

#+begin_src markdown
[(relative) page](http:///rootsite/somepage/)
#+end_src

which is the interpreted as is when rendered as html page as:

#+begin_src html
<a href="http:///rootsite/somepage/";>(relative) page</a>
#+end_src

hence isn't relevant.

Regards.
-- 
Denis


Reply via email to