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
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode