emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-e-html: Including ATTR_HTML: title="hover text"


From: William Crandall
Subject: Re: [O] org-e-html: Including ATTR_HTML: title="hover text"
Date: Thu, 7 Jun 2012 15:26:29 -0700

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 <a> or <img> tags. Here is an example that sets title and style
attributes for a link:

     #+ATTR_HTML: title="The Org mode homepage" style="color:red;"
     [[http://orgmode.org]]


Thanks for looking at this again!

-BC


On Thu, Jun 7, 2012 at 12:28 PM, Nicolas Goaziou <address@hidden> wrote:
> Hello,
>
> William Crandall <address@hidden> writes:
>
>> If org-mode source text is:
>>
>> --------------------------------------------------
>> A paragraph about
>> #+ATTR_HTML: title="Link hover text"
>> [[http://orgmode.org]]
>> exalting new emacs mode...
>> --------------------------------------------------
>
>> "M-x org-export-dispatch h" generates:
>>
>> --------------------------------------------------
>> <p>
>> A paragraph about
>> </p>
>> <p>
>> <a href="http://orgmode.org";>http://orgmode.org</a>
>> exalting new emacs mode&hellip;
>> </p>
>> --------------------------------------------------
>>
>> which is less grand.
>>
>> I see two needed fixes, reading
>> http://orgmode.org/org.html#Links-in-HTML-export
>>
>> 1. A new </p><p> should not be inserted before
>>    lines 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]