From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: The headers' anchors from custom ids should be at the beginning, and not at the end, of these headers [8.3.1 (8.3.1-129-ga7c8d2-elpa @ /home/bitouze/.emacs.d/elpa/org-20150921/)] Date: Tue, 22 Sep 2015 21:39:59 +0200 Message-ID: <8737y6b5v4.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]:51979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeTOU-0001gk-R0 for emacs-orgmode@gnu.org; Tue, 22 Sep 2015 15:38:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZeTOT-0004Vp-MN for emacs-orgmode@gnu.org; Tue, 22 Sep 2015 15:38:26 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:49031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeTOT-0004VN-GI for emacs-orgmode@gnu.org; Tue, 22 Sep 2015 15:38:25 -0400 In-Reply-To: ("Denis \=\?utf-8\?Q\?Bitouz\?\= \=\?utf-8\?Q\?\=C3\=A9\=22's\?\= message of "Mon, 21 Sep 2015 21:59:19 +0200") 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: Denis =?utf-8?Q?Bitouz=C3=A9?= Cc: emacs-orgmode@gnu.org Hello, dbitouze@wanadoo.fr (Denis Bitouz=C3=A9) writes: > The following org file: > > #+begin_src org > * Heading with custom id > :PROPERTIES: > :CUSTOM_ID: custom-id-heading > :END: > > * Heading bis with custom id and very very very very very very very very = very very very very very very very very very very very very very very very = very long text > :PROPERTIES: > :CUSTOM_ID: custom-id-heading-bis > :END: > > See [[#custom-id-heading-bis][heading bis with custom id and very long te= xt]]. > #+end_src > > is exported as markdown to: > > #+begin_src markdown > > > # Heading with custom id > > # Heading bis with custom id and very very very very very very very very = very very very very very very very very very very very very very very very = very long text > > See [heading bis with custom id and very long text](#custom-id-heading-bi= s). > #+end_src > > As you can see, the anchor in the .md file is at the end of the header an= d, in > case this header contains long text, clicking on a link to this anchor wo= uld > lead us to the end, eventually not at the first line, of this header. True. But there's a trade-off: putting anchor at the beginning of the heading is less readable. So I'm not sure it is a clear win. Regards, --=20 Nicolas Goaziou