From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Internal non-PROPERTY links don't export to HTML with the "a" IDs that were assigned Date: Mon, 28 Mar 2016 13:11:28 -0400 Message-ID: <87mvpi4jen.fsf@alphaville.usersys.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akaho-0001WH-Ri for emacs-orgmode@gnu.org; Mon, 28 Mar 2016 13:12:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akahj-0006ng-RX for emacs-orgmode@gnu.org; Mon, 28 Mar 2016 13:11:56 -0400 Received: from plane.gmane.org ([80.91.229.3]:50133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akahj-0006nV-KU for emacs-orgmode@gnu.org; Mon, 28 Mar 2016 13:11:51 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1akahh-0001Pe-D8 for emacs-orgmode@gnu.org; Mon, 28 Mar 2016 19:11:49 +0200 Received: from pool-74-104-149-70.bstnma.fios.verizon.net ([74.104.149.70]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Mar 2016 19:11:49 +0200 Received: from ndokos by pool-74-104-149-70.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Mar 2016 19:11:49 +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: emacs-orgmode@gnu.org "D. C. Toedt" writes: > I'm using the latest update from the package updater, released 2016-03-28:  Org-mode version 8.3.2 (release_8.3.2-164-g50a182).   > > I can best illustrate the problem with an example: > > Org source:   > > See also the [[IndemnNonAssign][Indemnity rights not > ​​ > assignable]] provision.  > > ​Former exported HTML (correct): > > See also the Indemnity rig > ​​ > hts not assignable provision. > > ​​ > > Current exported HTML (incorrect): > > ​​ > See also the < > ​​ > a href="#orgtarget21">Indemnity rights not assignable provision.  > > ​​ > > ​​ > This causes problems, because "orgtarget21" won't necessarily be assigned to the same point in the text, which in turn means that "jump cite" ​​links to specific points internal to the > document will break.​​ > ​​ Do you actually see breakage? I get Indemnity rights not assignable coupled with at the referent, which is correct I believe. So what problems are you seeing (other than that the label looks funny)? > ​​I scanned through the documentation but didn't see anything indicating > ​that there's a setting to use assigned names instead of "orgtargetNN" CUSTOM_ID - I'm muttering because I'm not sure what problem you are having and whether CUSTOM_ID can solve it. LaTeX export can override these labels with org-latex-prefer-user-labels (see its documentation for the rationale), but there is no similar provision for HTML export. The issue (actually not quite the same issue but it *is* related) last came up about a month ago: http://thread.gmane.org/gmane.emacs.orgmode/105329 and Nicolas indicated that he would be willing to accept a patch to do something similar with HTML export: http://thread.gmane.org/gmane.emacs.orgmode/105329/focus=105391 The underlying rationale in that thread was that one might want predictable labels so that they could be used e.g. in CSS to style something. -- Nick