emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [BUG] manual: confusing example of adding attributes to a link (affi


From: Ihor Radchenko
Subject: Re: [BUG] manual: confusing example of adding attributes to a link (affiliated keywords)
Date: Sat, 25 Jun 2022 13:29:29 +0800

Max Nikulin <manikulin@gmail.com> writes:

> Org Manual in info "(org) Links in HTML export" 
> https://orgmode.org/manual/Links-in-HTML-export.html has the following 
> example:
>
>> Org files can also have special directives to the HTML export
>> back-end. For example, by using ‘#+ATTR_HTML’ lines to specify new
>> format attributes to <a> or <img> tags. This example shows changing
>> the link’s title and style:
>> 
>> #+ATTR_HTML: :title The Org mode homepage :style color:red;
>> [[https://orgmode.org]]
>
> Likely I have seen similar suggestions in this list as well.
>
> Actually it assigns attribute to paragraphs in addition to links. That 
> is why, I think, this fragment should be removed from manual as a 
> confusing one since it gives impression of support of per-link attributes.

Could we clarify that the attributes will apply to the paragraph instead?

> It states that styles and similar stuff may solve the issue with 
> attributes for inline objects. From my point of view it is wrong and in 
> some cases per-object attributes are necessary. While <a rel="nofollow 
> noreferrer" href="..."> or <a target="_blank" href="..."> may be added 
> through style, attributes like "alt" for images, "title", "lang", etc. 
> for links are individual.

You examples are pretty much dedicated to html. Do you know if
per-object attributes could be actually useful for other export
backends?

Best,
Ihor



reply via email to

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