emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [PATCH] * org-html.el (org-html-handle-links): add an alternate


From: Manuel Giraud
Subject: Re: [O] [PATCH] * org-html.el (org-html-handle-links): add an alternate for inline images
Date: Wed, 20 Apr 2011 11:41:36 +0200
User-agent: Gnus/5.1299999999999999 (Gnus v5.13) Emacs/23.3 (berkeley-unix)

Aankhen <address@hidden> writes:

> On Wed, Apr 20, 2011 at 13:39, Manuel Giraud
> <address@hidden> wrote:
>
>> I knew it was not the best solution: all i wanted was to validate. But
>> an empty alt or maybe just "image" is fine by me too.
>
> Fair enough. :-) ‘image’ would be about the same as the file name in
> terms of useful alt text.

:-) and as useful as "" which is 5 bytes shorter: I think you've won
here.

> Well, there /is/ a way to do that already, it’s just verbose:
>
> ,----[ Org ]
> | * Foo
> | #+ATTR_HTML: alt="The elusive foo in its native habitat."
> | [[file:foo.png]]
> `----

Yes, discovered that in the doc just after posting my reply. But, this
doesn't work on [[big.jpg][small.jpg]] links as the alt attribute will
be placed in the anchor (which is wrong, AFAICT).

> I’d suggest using the description part of the link as the alt text,
> but then there’d be no way to provide the actual link text (or image,
> as the case may be), so that’s a non-starter.

Now, I'm looking into using the fragment part: less verbose and
hopefully it'll work for all kind of inline image.

-- 
Manuel Giraud



reply via email to

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