From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Question regarding link text in HTML export Date: Wed, 24 Apr 2013 09:17:33 +0200 Message-ID: <87txmw9z3m.fsf@gmail.com> References: <87haiw32si.wl%egh@e6h.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUtxR-00009u-Q7 for emacs-orgmode@gnu.org; Wed, 24 Apr 2013 03:17:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UUtxQ-0005wE-Kl for emacs-orgmode@gnu.org; Wed, 24 Apr 2013 03:17:37 -0400 Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:38148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUtxQ-0005w7-Ex for emacs-orgmode@gnu.org; Wed, 24 Apr 2013 03:17:36 -0400 Received: by mail-wg0-f43.google.com with SMTP id c11so682406wgh.10 for ; Wed, 24 Apr 2013 00:17:35 -0700 (PDT) In-Reply-To: <87haiw32si.wl%egh@e6h.org> (Erik Hetzner's message of "Tue, 23 Apr 2013 22:39:41 -0700") 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Erik Hetzner Cc: emacs-orgmode@gnu.org Hello, Erik Hetzner writes: > When trying to export the following org file as HTML (C-e h o), using > out of the box latest org-mode: > > ``` > * Foo > :PROPERTIES: > :ID: aaccd0f3-3eff-4f38-ad83-bc51b8444d73 > :END: > * Bar > :PROPERTIES: > :ID: 0a428695-b829-4f8b-a689-1bc22491d13f > :END: > Link to [[id:aaccd0f3-3eff-4f38-ad83-bc51b8444d73][Foo]]. > ``` > > the HTML looks like: > > ... > Link to 1. > > while I would expect it to say: =E2=80=9CLink to Foo.=E2=80=9D. > > If I change the link text to anything other than =E2=80=9CFoo=E2=80=9D, e= .g., > [[id:aaccd0f3-3eff-4f38-ad83-bc51b8444d73][Baz]], > the link text is as expected. > > This seems like a bug to me, but I may be mistaken! Thanks for any > help you can provide. This is not a bug. This is how cross references work: any link to an internal target without a description will become a number referring to the target. It works for headlines and many other things, Note that the HTML is smart enough to not do that when headlines are not numbered. Regards, --=20 Nicolas Goaziou