emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: Bug: [Markdown export] Relative pages considered as files if links' targets [8.3.1 (8.3.1-123-g823cad-elpa @ /home/bitouze/.emacs.d/elpa/org-20150914/)]
Date: Sun, 20 Sep 2015 17:52:56 +0200	[thread overview]
Message-ID: <87r3ltytnr.fsf@gmx.us> (raw)
In-Reply-To: m3zj0hjesw.fsf@drums.chezmoi.fr

dbitouze@wanadoo.fr (Denis Bitouzé) writes:

> Remember to cover the basics, that is, what you expected to happen and
> what in fact did happen.  You don't know how to make a good report?  See
>
>      http://orgmode.org/manual/Feedback.html#Feedback
>
> Your bug report will be posted to the Org-mode mailing list.
> ------------------------------------------------------------------------
>
> Sometimes, you need to have links, the targets of which are relative
> pages of your site. Unfortunately, when exported to Markdown, these
> relative pages are considered as files:
>
> #+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 the expected behavior would be:
>
> #+begin_src markdown
> -   A [(relative) page](/rootsite/somepage/).
> -   A [(relative) page](/rootsite/somepage).
> #+end_src

What if you add a dot? 

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

⇒

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

Or is that a different link?

-- 
It was you, Jezebel, it was you

  reply	other threads:[~2015-09-20 15:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-20 15:22 Bug: [Markdown export] Relative pages considered as files if links' targets [8.3.1 (8.3.1-123-g823cad-elpa @ /home/bitouze/.emacs.d/elpa/org-20150914/)] Denis Bitouzé
2015-09-20 15:52 ` Rasmus [this message]
2015-09-20 17:59   ` Bug: [Markdown export] Relative pages considered as files if links' targets [8.3.1 (8.3.1-123-g823cad-elpa <at> /home/bitouze/.emacs.d/elpa/org-20150914/)] Denis Bitouzé

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=87r3ltytnr.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.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).