[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] image alt text for HTML export
From: |
Christian Moe |
Subject: |
Re: [Orgmode] image alt text for HTML export |
Date: |
Tue, 14 Sep 2010 09:45:06 +0200 |
User-agent: |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9.2.9) Gecko/20100825 Thunderbird/3.1.3 |
On 9/14/10 9:01 AM, Aidan Gauland wrote:
Is it possible to set the alt attribute of an image for HTML export?
Yes, like so:
: #+attr_html: alt="Picture of a foo"
: [[./foo.png]]
See the manual section on exporting to HTML.
Cheers,
CM
If I insert an inline image into an Org buffer like so...
[[./foo.png]]
...and export it to HTML, I get something like this...
<img src="foo.png" alt="foo.png" />
But I want the alt attribute to be "foo" (or something else), not the
filename.
I know this is an HTML-specific setting, but I still want the image be
exported to other formats, so inserting literal HTML (see below) isn't
really suitable.
#+HTML:<img src="foo.png" alt="foo" />
If there is no way to do this, should I file a feature request?
--Aidan
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
--
Christian Moe
E-mail: address@hidden
Website: http://christianmoe.com