From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [ox-html] Why are dedicated targets automatically renamed? Date: Sun, 31 Jan 2016 22:52:20 +0100 Message-ID: <87h9ht1kob.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPzt2-0001ZY-Dh for emacs-orgmode@gnu.org; Sun, 31 Jan 2016 16:50:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPzsy-0007Vt-B3 for emacs-orgmode@gnu.org; Sun, 31 Jan 2016 16:50:24 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:49305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPzsy-0007Ua-3W for emacs-orgmode@gnu.org; Sun, 31 Jan 2016 16:50:20 -0500 In-Reply-To: (=?utf-8?Q?=22S=C3=A9bastien?= Brisard"'s message of "Thu, 21 Jan 2016 07:45:23 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?S=C3=A9bastien?= Brisard Cc: emacs-orgmode@gnu.org Hello, S=C3=A9bastien Brisard writes: > I have noticed that org-mode now renames dedicated targets. More > precisely, the following org file > > =3D=3D=3D=3D=3D beginning of a.org =3D=3D=3D=3D=3D > - <>Item 1 > - <>Item 2 > =3D=3D=3D=3D=3D end of a.org =3D=3D=3D=3D=3D > > gets exported to html as > > =3D=3D=3D=3D=3D beginning of a.html (extract) =3D=3D=3D=3D=3D > >
>
    >
  • Item 1
  • >
  • Item 2
  • >
>
> > > =3D=3D=3D=3D=3D end of a.html =3D=3D=3D=3D=3D > > Notice that the targets were renamed item1 -> orgtarget1 and item2 -> > orgtarget2. Why is that? It allows using any kind of character for a target without knowing HTML's forbidden ones. > With org-publish, it messes up links across files. What do you mean? <<...>> are internal targets, and by no mean meant to link across documents. > Is there an option that allows to preserve the user's target name on > export? No, there isn't. "ox-latex" provides one, but not "ox-html". Note that custom ID are always preserved, tho. Regards, --=20 Nicolas Goaziou