From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: HTML export: internal links broken Date: Wed, 26 Mar 2008 23:50:20 +0100 Message-ID: <87r6dxqevn.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JeeSA-0008TG-Qi for emacs-orgmode@gnu.org; Wed, 26 Mar 2008 18:50:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JeeS9-0008Sy-FO for emacs-orgmode@gnu.org; Wed, 26 Mar 2008 18:50:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JeeS9-0008Sv-9q for emacs-orgmode@gnu.org; Wed, 26 Mar 2008 18:50:41 -0400 Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JeeS8-0005tR-Ph for emacs-orgmode@gnu.org; Wed, 26 Mar 2008 18:50:41 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Mailinglist There is small bug in the XHTML export. Internal links point to nowhere. * Example *** In the orgfile: This [[Some Heading][Link]] should link to '*** Some Heading'. *** After export, HTML file: This Link should link to '*** Some Heading'. There is no anchor defined with that name in the exported HTML. There are two possibilities to change this: 1) define the anchor next to the heading: 2) If the link pionts to a heading, use the ID of the heading in the link: ... Link to '*** Some Heading'. The second one is the one I would prefer, but that would mean to handle links to headings differently from links to user defined anchors. But it would keep the nesting of section containers clean. Regards, Sebastian From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: HTML export: internal links broken Date: Fri, 28 Mar 2008 16:20:24 +0100 Message-ID: <26176C4B-6F02-4249-BDB5-A48D7F9577A0@science.uva.nl> References: <87r6dxqevn.fsf@gmx.de> Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JfGNZ-0000lh-FZ for emacs-orgmode@gnu.org; Fri, 28 Mar 2008 11:20:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JfGNX-0000il-JL for emacs-orgmode@gnu.org; Fri, 28 Mar 2008 11:20:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfGNX-0000iG-3t for emacs-orgmode@gnu.org; Fri, 28 Mar 2008 11:20:27 -0400 Received: from fg-out-1718.google.com ([72.14.220.154]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JfGNW-0000HY-R1 for emacs-orgmode@gnu.org; Fri, 28 Mar 2008 11:20:27 -0400 Received: by fg-out-1718.google.com with SMTP id d23so350803fga.30 for ; Fri, 28 Mar 2008 08:20:26 -0700 (PDT) In-Reply-To: <87r6dxqevn.fsf@gmx.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastian Rose Cc: emacs-orgmode Mailinglist 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 > > 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: >
>

1 Some Heading

>
> >
>

1.1 Some other heading span>

>
> >
>

1.1.1 Some third span> heading

>
> > >

> This Link should link to '*** Some Heading'. >

>

> This Link should link to '*** Some other > heading'. >

>

> This Link should link to '*** Some third > heading'. >

>
>
>
>
Hope this helps. - Carsten