emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] HTML export: internal links broken


From: Carsten Dominik
Subject: Re: [Orgmode] HTML export: internal links broken
Date: Fri, 28 Mar 2008 16:20:24 +0100

Hi Sebastian,

this is not really a bug. Internal links in Org are fuzzy links, they do a text search. During HTML export I am only implementing explicit targets: pieces of text enclosed in <<...>>

So if you write

* <<Some Heading>>

** <<Some other heading>>

*** Some <<third>> heading

   This [[Some Heading][Link]] should link to '*** Some Heading'.

This [[Some other heading][Link]] should link to '*** Some other heading'.

   This [[third][Link]] should link to '*** Some third heading',
   even though only a single word is in the target.


then you will get a properly linked export:

<div id="outline-container-1" class="outline-2">
  <h2 id="sec-1">1 <span class="target">Some Heading</span> </h2>
  <div id="text-1"></div>

  <div id="outline-container-1.1" class="outline-3">
<h3 id="sec-1.1">1.1 <span class="target">Some other heading</ span> </h3>
    <div id="text-1.1"></div>

    <div id="outline-container-1.1.1" class="outline-4">
<h4 id="sec-1.1.1">1.1.1 Some <span class="target">third</ span> heading</h4>
      <div id="text-1.1.1">


<p>
This <a href="#sec-1">Link</a> should link to '*** Some Heading'.
</p>
<p>
This <a href="#sec-1.1">Link</a> should link to '*** Some other heading'.
</p>
<p>
This <a href="#sec-1.1.1">Link</a> should link to '*** Some third heading'.
</p>
</div>
</div>
</div>
</div>

Hope this helps.

- Carsten





reply via email to

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