From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Denis_Bitouz=C3=A9?= Subject: Re: 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 Message-ID: References: <87k2rkajql.fsf@nicolasgoaziou.fr> <87a8sgmgie.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <87a8sgmgie.fsf-Gpy5sJQTEQHwkn9pgDnJRVAUjnlXr6A1@public.gmane.org> (Nicolas Goaziou's message of "Mon, 21 Sep 2015 08:30:01 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: Nicolas Goaziou Cc: Denis =?utf-8?Q?Bitouz=C3=A9?= , public-emacs-orgmode-mXXj517/zsQ-wOFGN7rlS/M9smdsby/KFg@public.gmane.org Le 21/09/15 =C3=A0 08h30, Nicolas Goaziou a =C3=A9= crit : > Hello, > > Denis Bitouz=C3=A9 wri= tes: > >> 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 (relative) page #+end_src hence isn't relevant. Regards. --=20 Denis