From: "Denis Bitouzé" <dbitouze-39ZsbGIQGT5GWvitb5QawA@public.gmane.org>
To: Nicolas Goaziou <mail-Gpy5sJQTEQHwkn9pgDnJRVAUjnlXr6A1@public.gmane.org>
Cc: "Denis Bitouzé"
<public-dbitouze-39ZsbGIQGT5GWvitb5QawA-wOFGN7rlS/M9smdsby/KFg@public.gmane.org>,
public-emacs-orgmode-mXXj517/zsQ-wOFGN7rlS/M9smdsby/KFg@public.gmane.org
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 [thread overview]
Message-ID: <m3mvwfwwva.fsf@example.com> (raw)
In-Reply-To: <87a8sgmgie.fsf-Gpy5sJQTEQHwkn9pgDnJRVAUjnlXr6A1@public.gmane.org> (Nicolas Goaziou's message of "Mon, 21 Sep 2015 08:30:01 +0200")
Le 21/09/15 à 08h30, Nicolas Goaziou <mail-Gpy5sJQTEQHwkn9pgDnJRVAUjnlXr6A1@public.gmane.org> a écrit :
> Hello,
>
> Denis Bitouzé <dbitouze-39ZsbGIQGT5GWvitb5QawA-XMD5yJDbdMReXY1tMh2IBg@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
prev parent reply other threads:[~2015-09-21 16:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-20 19:00 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/)] Denis Bitouzé
2015-09-20 21:01 ` Nicolas Goaziou
[not found] ` <87k2rkajql.fsf-Gpy5sJQTEQHwkn9pgDnJRVAUjnlXr6A1@public.gmane.org>
2015-09-21 5:34 ` Denis Bitouzé
2015-09-21 6:30 ` Nicolas Goaziou
[not found] ` <87a8sgmgie.fsf-Gpy5sJQTEQHwkn9pgDnJRVAUjnlXr6A1@public.gmane.org>
2015-09-21 16:38 ` Denis Bitouzé [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3mvwfwwva.fsf@example.com \
--to=dbitouze-39zsbgiqgt5gwvitb5qawa@public.gmane.org \
--cc=mail-Gpy5sJQTEQHwkn9pgDnJRVAUjnlXr6A1@public.gmane.org \
--cc=public-dbitouze-39ZsbGIQGT5GWvitb5QawA-wOFGN7rlS/M9smdsby/KFg@public.gmane.org \
--cc=public-emacs-orgmode-mXXj517/zsQ-wOFGN7rlS/M9smdsby/KFg@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).