From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: ox-html export bug Date: Fri, 08 Sep 2017 12:19:38 +0200 Message-ID: <87bmmlwkzp.fsf@nicolasgoaziou.fr> References: <87mv66xvlr.fsf@nicolasgoaziou.fr> <0463b497-7f6b-b5c2-005b-25412ba80fba@gmail.com> <8760cto9gz.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqGO2-0004dJ-OF for emacs-orgmode@gnu.org; Fri, 08 Sep 2017 06:19:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqGNy-0006eW-2V for emacs-orgmode@gnu.org; Fri, 08 Sep 2017 06:19:46 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:48225) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dqGNx-0006cJ-SX for emacs-orgmode@gnu.org; Fri, 08 Sep 2017 06:19:41 -0400 In-Reply-To: <8760cto9gz.fsf@gmx.us> (rasmus@gmx.us's message of "Fri, 08 Sep 2017 10:55:40 +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" To: Rasmus Cc: emacs-orgmode@gnu.org Hello, Rasmus writes: > kadal writes: > >> The problem is that if you have CSS that decorates links by adding >> content after a link, that (empty) link gets decorated too. > > Fair point. Would it be sufficient to give these type of links a class, > say "org-internal-links". Then you should be able to explicitly turn off > the content for these links. > > .org-internal-links::after {content:"";} I haven't put much thought into it, but I wonder if it would be possible to ignore EXTRA-IDS and only use PREFERRED-ID (see `org-html-headline'), i.e., use (or (org-element-property :CUSTOM_ID headline) (org-export-get-reference headline info)) It could be a problem when publishing to HTML, but I'm not sure at this point. Regards, -- Nicolas Goaziou