From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Inline images export to HTML generates < and > rather than < and > Date: Sun, 27 Mar 2011 10:09:38 -0400 Message-ID: <87aaggr6xp.fsf@norang.ca> References: <87tyeod677.fsf@zephyr.silentflame.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=57062 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3qf1-0006Kd-JT for emacs-orgmode@gnu.org; Sun, 27 Mar 2011 10:09:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q3qf0-0003Pg-9j for emacs-orgmode@gnu.org; Sun, 27 Mar 2011 10:09:43 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:35231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q3qf0-0003PU-7F for emacs-orgmode@gnu.org; Sun, 27 Mar 2011 10:09:42 -0400 In-Reply-To: <87tyeod677.fsf@zephyr.silentflame.com> (Sean Whitton's message of "Sun, 27 Mar 2011 14:49:16 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sean Whitton Cc: emacs-orgmode@gnu.org Sean Whitton writes: > Another fanatical Org-mode convert new to the list. Following the > 'advice' of [1] I am attempting to generate my personal website using > Org publishing, but I'm running up against a pretty weird bug when I try > to export inline images. The code gets rendered so that the HTML > appears in the browser literally; hitting view-source, instead of > > img/avi.gif > > Org seems to be outputting > > <img src="img/avi.gif" alt="img/avi.gif" /> > > which obviously doesn't appear as an image. > > The code in the org file is just [[file:img/avi.gif]]. > > Any idea why this might be? Publishing configuration follows.[2] > Excited about what I can do with Org publishing; thanks in advance for > any assistance. > > S > > [1] http://mph.puddingbowl.org/2010/02/org-mode-in-your-pocket-is-a-gnu-shaped-devil/ > > [2] From my Org init file. Sitemap is published seperately so that I can > apply body-only so that it can be included with SSI. This works very > well. Hi Sean, Welcome to the list! This works for me. I think there was a bug like this in a recent release. What version of org-mode are you using? Mine exports as follows --8<---------------cut here---------------start------------->8--- * Test export [[file:img/avi.gif]] --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- ...

img/avi.gif

... --8<---------------cut here---------------end--------------->8--- Maybe try upgrading to the latest development snapshot of org? I'm using Org-mode version 7.5 (release_7.5.115.g00134) Regards, -- Bernt