emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Sebastian Rose <sebastian_rose@gmx.de>
Cc: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: HTML export: internal links broken
Date: Fri, 28 Mar 2008 16:20:24 +0100	[thread overview]
Message-ID: <26176C4B-6F02-4249-BDB5-A48D7F9577A0@science.uva.nl> (raw)
In-Reply-To: <87r6dxqevn.fsf@gmx.de>

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	other threads:[~2008-03-28 15:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-26 22:50 HTML export: internal links broken Sebastian Rose
2008-03-28 15:20 ` Carsten Dominik [this message]

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=26176C4B-6F02-4249-BDB5-A48D7F9577A0@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=sebastian_rose@gmx.de \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public 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).