[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [emacs-wiki-discuss] xhtml and images
From: |
Trent Buck |
Subject: |
Re: [emacs-wiki-discuss] xhtml and images |
Date: |
Wed, 09 Nov 2005 23:22:56 +1100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
address@hidden (Björn Lindström) writes:
> An image can't occur directly in the body of an XHTML document. However,
> this is what Muse produces if I put an image alone in a paragraph.
>
> Behold the validator complaints: http://xrl.us/icuh
Adding the following to your .emacs should make pages validate, although they
may look funny.
(eval-after-load "muse-html"
'(mapc (lambda (p)
(setcdr (assoc (car p) muse-html-markup-strings) (cadr p)))
'((image-with-desc "<div><img src=\"%s\" alt=\"%s\"></div>")
(image-link "<div><img src=\"%s\" alt=\"\"></div>")
(url-with-image
"<div><a class=\"image-link\" href=\"%s\"><img
src=\"%s\"></a></div>")))
HTH, HAND
--
Trent Buck, Student Errant