emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Question regarding link text in HTML export


From: Nicolas Goaziou
Subject: Re: [O] Question regarding link text in HTML export
Date: Wed, 24 Apr 2013 09:17:33 +0200

Hello,

Erik Hetzner <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]