emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Links to id:xxxxxx don't work in exported html


From: Carsten Dominik
Subject: Re: [Orgmode] Links to id:xxxxxx don't work in exported html
Date: Thu, 8 Jan 2009 22:43:10 +0100

Hi Friedrich,

thanks for bringing this up.  Yes, this should work.
Back when I did the id links, I thought it would be very hard,
but fortunately I did put the basic framework for additional
targets in place already a while ago, in response to a request
by Matt for hard targets that are good for permanent HTML links.

Now you can use the ID's.  The advantage is that, as you move
links around, they will continue to work.  So this is really
great for Notes that you might want to re-organize.

On the other hand, when building a website, explicit targets
may be more self-explanatory:

#<<hard-target>>
* Headline that should be linked to

HTH

- Carsten

On Jan 8, 2009, at 3:49 PM, Friedrich Delgado Friedrichs wrote:

Hi!

I really like org-link-to-org-use-id, however it breaks links to
org items in html export for me.

I have the following test file:

** Test [[id:45c4a467-b6ee-497c-9ed7-40342738e1c2][Item in a different org-file]]
- [[id:frz5htg0rhe0][Yet another item in a different org file]]

  [[id:8611fa8f-7460-47b6-8edd-67e1ec25c5ce][Local Item]]

** Local Item
  :PROPERTIES:
  :ID:       8611fa8f-7460-47b6-8edd-67e1ec25c5ce
  :END:

The two external links have the mentioned ids and the links work in org,
however html export gives me the following html snippet:

<div id="outline-container-1.1" class="outline-3">
<h3 id="sec-1.1">1.1 Test <i>&lt;id:45c4a467- b6ee-497c-9ed7-40342738e1c2&gt;</i> </h3>
<div id="text-1.1">

<ul>
<li>
<i>&lt;id:frz5htg0rhe0&gt;</i>

<p>
<a href="#sec-1.2">Local Item</a>
</p>
</li>
</ul>
</div>

</div>

<div id="outline-container-1.2" class="outline-3">
<h3 id="sec-1.2">1.2 Local Item </h3>
<div id="text-1.2">

</div>
</div>

i.e. only the internal link works, the links to different org files
are only displayed by their ids.


--
       Friedrich Delgado Friedrichs <address@hidden>
                            TauPan on Ircnet and Freenode ;)


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

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