From mboxrd@z Thu Jan 1 00:00:00 1970
From: William Crandall
Subject: Re: org-e-html: Including ATTR_HTML: title="hover text"
Date: Thu, 7 Jun 2012 15:26:29 -0700
Message-ID:
References:
<87aa0egbvy.fsf@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Return-path:
Received: from eggs.gnu.org ([208.118.235.92]:56879)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1SclA2-000558-NR
for emacs-orgmode@gnu.org; Thu, 07 Jun 2012 18:26:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1SclA0-0006wR-3W
for emacs-orgmode@gnu.org; Thu, 07 Jun 2012 18:26:34 -0400
Received: from mail-ob0-f169.google.com ([209.85.214.169]:34783)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1Scl9z-0006wH-SL
for emacs-orgmode@gnu.org; Thu, 07 Jun 2012 18:26:32 -0400
Received: by obbwd18 with SMTP id wd18so1917784obb.0
for ; Thu, 07 Jun 2012 15:26:29 -0700 (PDT)
In-Reply-To: <87aa0egbvy.fsf@gmail.com>
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: Nicolas Goaziou
Cc: emacs-orgmode@gnu.org, Jambunathan K
Hello Nicolas,
Thanks for your email. You write:
"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:
12.5.4 Links in HTML export
http://orgmode.org/org.html#Links-in-HTML-export
If you want to specify attributes for links, you can do so using a
special #+ATTR_HTML line to define attributes that will be added to
the or tags. Here is an example that sets title and style
attributes for a link:
#+ATTR_HTML: title=3D"The Org mode homepage" style=3D"color:red;"
[[http://orgmode.org]]
Thanks for looking at this again!
-BC
On Thu, Jun 7, 2012 at 12:28 PM, Nicolas Goaziou wrot=
e:
> Hello,
>
> William Crandall writes:
>
>> If org-mode source text is:
>>
>> --------------------------------------------------
>> A paragraph about
>> #+ATTR_HTML: title=3D"Link hover text"
>> [[http://orgmode.org]]
>> exalting new emacs mode...
>> --------------------------------------------------
>
>> "M-x org-export-dispatch h" generates:
>>
>> --------------------------------------------------
>>
>> A paragraph about
>>
>>
>> http://orgmode.org
>> exalting new emacs mode…
>>
>> --------------------------------------------------
>>
>> which is less grand.
>>
>> I see two needed fixes, reading
>> http://orgmode.org/org.html#Links-in-HTML-export
>>
>> 1. A new
should not be inserted before
>> =A0 =A0lines starting #+ATTR_HTML.
>
> It sure should: you're starting a new paragraph containing a link and
> "exalting new emacs mode..." text.
>
> ATTR_HTML is an attribute for paragraphs, not links (though it may apply
> on links within the paragraph).
>
> You may want to add your title attribute with filters.
>
>
> Regards,
>
> --
> Nicolas Goaziou