From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-e-html: Including ATTR_HTML: title="hover text" Date: Fri, 08 Jun 2012 15:28:56 +0200 Message-ID: <87wr3ic4pz.fsf@gmail.com> References: <87aa0egbvy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SczIW-0001Nt-Li for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 09:32:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SczIJ-0001JQ-K4 for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 09:32:16 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:36569) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SczIJ-0001IA-Bn for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 09:32:03 -0400 Received: by wibhm14 with SMTP id hm14so433339wib.12 for ; Fri, 08 Jun 2012 06:32:01 -0700 (PDT) In-Reply-To: (William Crandall's message of "Thu, 7 Jun 2012 15:26:29 -0700") 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: William Crandall Cc: emacs-orgmode@gnu.org, Jambunathan K Hello, William Crandall writes: > "ATTR_HTML is only for paragraphs, not links." > > This puzzles me, because (1) the old exporter works fine > on links that are inside paragraphs, as my example showed, > and (2) the Manual says ATTR_HTML lines are for links: That's a major change from previous exporter. Now, almost every element, including paragraphs, can have affiliated keywords at their beginning. Hence you can write: #+attr_latex: something - item 1 - item 2 or #+attr_html: something Some paragraph. This means that One paragraph. #+attr_html: something [[link]] Second paragraph is equivalent to: One paragraph. #+attr_html: something [[link]] Second paragraph Now let's have a look at your example. #+ATTR_HTML: title="The Org mode homepage" style="color:red;" [[http://orgmode.org]] In this case, the affiliated keyword is attached to the paragraph containing the link. But _the link can inherit from paragraph's attributes_. Since this is not the case yet in, I've added into code base. Is it working as expected? I hope I am clearer now. Regards, -- Nicolas Goaziou