From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Radio target appears as a link in html export (in Emacs stable) Date: Mon, 01 Feb 2016 12:21:09 +0100 Message-ID: <87a8nkllqy.fsf@nicolasgoaziou.fr> References: <87r3h6qeag.fsf@duenenhof-wilhelm.de> <87r3h5l2vn.fsf@nicolasgoaziou.fr> <87mvrrqwno.fsf@duenenhof-wilhelm.de> <87zivr6tvk.fsf@nicolasgoaziou.fr> <87io28rjw7.fsf@duenenhof-wilhelm.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQCVk-0001lT-Hk for emacs-orgmode@gnu.org; Mon, 01 Feb 2016 06:19:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQCVh-0001Pm-Bd for emacs-orgmode@gnu.org; Mon, 01 Feb 2016 06:19:12 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:45862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQCVh-0001Ph-4g for emacs-orgmode@gnu.org; Mon, 01 Feb 2016 06:19:09 -0500 In-Reply-To: <87io28rjw7.fsf@duenenhof-wilhelm.de> (H. Dieter Wilhelm's message of "Mon, 01 Feb 2016 08:04:40 +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: "H. Dieter Wilhelm" Cc: emacs-orgmode@gnu.org Hello, dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) writes: > Nicolas Goaziou 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 >> >> you would have to type >> >> <> ... [[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]] >>> 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: >> >> <<>> :target link: radio >> >> When exporting it to HTML, I get the following: >> >> radio :target link: radio > > > I'm getting 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