emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <87mvpi4jen.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: CAGN11+0r=D9-38eC4B9rE_KSnwdkjSB+kxOiFJNt8xiawzgesw@mail.gmail.com

"D. C. Toedt" <dc@toedt.com> 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 <a href="#IndemnNonAssign">Indemnity rig
>     ​​
>     hts not assignable</a> provision.
>
> ​​
>
> Current exported HTML (incorrect):
>
>     ​​
>     See also the <
>     ​​
>     a href="#orgtarget21">Indemnity rights not assignable</a> 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

<a href="#org1946c66">Indemnity rights not assignable</a>

coupled with

<a id="org1946c66"></a>

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"

<mumble> CUSTOM_ID </mumble> - 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

  reply	other threads:[~2016-03-28 17:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-28 13:28 Internal non-PROPERTY links don't export to HTML with the "a" IDs that were assigned D. C. Toedt
2016-03-28 17:11 ` Nick Dokos [this message]
2016-03-28 17:48   ` D. C. Toedt

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=87mvpi4jen.fsf@alphaville.usersys.redhat.com \
    --to=ndokos@gmail.com \
    --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).