emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Erik Hetzner <egh@e6h.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Question regarding link text in HTML export
Date: Wed, 24 Apr 2013 09:17:33 +0200	[thread overview]
Message-ID: <87txmw9z3m.fsf@gmail.com> (raw)
In-Reply-To: <87haiw32si.wl%egh@e6h.org> (Erik Hetzner's message of "Tue, 23 Apr 2013 22:39:41 -0700")

Hello,

Erik Hetzner <egh@e6h.org> 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: “Link to Foo.”.
>
> If I change the link text to anything other than “Foo”, 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,

-- 
Nicolas Goaziou

  reply	other threads:[~2013-04-24  7:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-24  5:39 Erik Hetzner
2013-04-24  7:17 ` Nicolas Goaziou [this message]
2013-04-24  7:37   ` Sebastien Vauban
2013-04-24  7:55     ` Nicolas Goaziou
2013-04-24 14:24     ` Erik Hetzner

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=87txmw9z3m.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=egh@e6h.org \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: Question regarding link text in HTML export' \
    /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

Code repositories for project(s) associated with this 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).