[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: xhtml and images
From: |
Björn Lindström |
Subject: |
[emacs-wiki-discuss] Re: xhtml and images |
Date: |
Wed, 09 Nov 2005 14:15:42 +0100 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
Trent Buck <address@hidden> writes:
> 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>")))
Thanks. I would prefer that Muse got fixed, of course.