emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sebastian Rose <sebastian_rose@gmx.de>
To: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: HTML export: internal links broken
Date: Wed, 26 Mar 2008 23:50:20 +0100	[thread overview]
Message-ID: <87r6dxqevn.fsf@gmx.de> (raw)

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 <a href="#Some--Heading">Link</a> 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:
       <a id="Some--Heading" />

    2) If the link pionts to a heading, use the ID of the heading in the
       link: 
       ... <a href="sec-3.2.1">Link</a> 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

             reply	other threads:[~2008-03-26 22:50 UTC|newest]

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

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=87r6dxqevn.fsf@gmx.de \
    --to=sebastian_rose@gmx.de \
    --cc=emacs-orgmode@gnu.org \
    /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).