emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Radio target appears as a link in html export (in Emacs stable)
Date: Mon, 01 Feb 2016 12:21:09 +0100	[thread overview]
Message-ID: <87a8nkllqy.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87io28rjw7.fsf@duenenhof-wilhelm.de> (H. Dieter Wilhelm's message of "Mon, 01 Feb 2016 08:04:40 +0100")

Hello,

dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) writes:

> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>
>> dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) writes:
>>
>>> But then I would have to turn all my radio links into proper links,
>>> which I see no method - except with radio targets - to do this
>>> automatically.
>>
>> Instead of 
>>
>>   <<<radio>>> ... radio
>>
>> you would have to type
>>
>>   <<radio>>   ... [[radio]]
>>
>> which, IMO, is almost equally simple.
>
> Hmmm, that is true.  In the worst case I've to get used to it...

Actually, it is slightly more complicated:

  <<radio>> ... [[radio][radio]]

>>> The radio links are turned correctly into links. :-)
>>>
>>> But the targets (anchors) appear *also* as links (in HTML).  Which is
>>> confusing and redundant because there are not linked to anything.
>>
>> I'm confused, mainly because I'm not well versed in HTML. Let's consider
>> the following document:
>>
>>   <<<radio>>> :target link: radio
>>
>> When exporting it to HTML, I get the following:
>>
>>   <a id="orgradiotarget1">radio</a> :target link: <a href="#orgradiotarget1">radio</a>
>
>
> I'm getting <a id="orgradiotarget1" name="orgradiotarget1"</a> instead,
> which *appears* in my html page as a link (which is wrong IMHO, Org-mode
> version 8.2.10, Emacs stable).

IIUC, the only difference with my output is the "name" attribute. You
may want to check `org-html-allow-name-attribute-in-anchors'.

> I would expect an invisible html entity or just the apperance of the
> text "orgradiotarget1".

The latter is indeed expected. 

Assuming the variable above is non-nil, which would explain your output,
we could consider to ignore it altogether for radio targets. Again, I'm
not much into HTML so I don't know if that's a good idea (e.g., is there
any use for an anchor with both an id and a name attribute in the
context of radio targets?).

Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2016-02-01 11:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-25  8:00 Radio target appears as a link in html export (in Emacs stable) H. Dieter Wilhelm
2016-01-25 22:18 ` Nicolas Goaziou
2016-01-27  8:00   ` H. Dieter Wilhelm
2016-01-27 13:21     ` Nicolas Goaziou
2016-02-01  7:04       ` H. Dieter Wilhelm
2016-02-01 11:21         ` Nicolas Goaziou [this message]
2016-02-01 11:23           ` Nicolas Goaziou
2016-02-02  7:38           ` H. Dieter Wilhelm

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=87a8nkllqy.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=dieter@duenenhof-wilhelm.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).