[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: Custom id taken into account with html, but not with markdo
From: |
Denis Bitouzé |
Subject: |
Re: [O] Bug: Custom id taken into account with html, but not with markdown, exports [8.3.1 (8.3.1-123-g823cad-elpa @ /home/bitouze/.emacs.d/elpa/org-20150914/)] |
Date: |
Mon, 21 Sep 2015 18:38:49 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Le 21/09/15 à 08h30, Nicolas Goaziou <address@hidden> a écrit :
> Hello,
>
> Denis Bitouzé <address@hidden> 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

#+end_src
and not to:
#+begin_src markdown

#+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