emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Sean Whitton <sean@silentflame.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Inline images export to HTML generates &lt; and &gt; rather than < and >
Date: Sun, 27 Mar 2011 10:09:38 -0400	[thread overview]
Message-ID: <87aaggr6xp.fsf@norang.ca> (raw)
In-Reply-To: <87tyeod677.fsf@zephyr.silentflame.com> (Sean Whitton's message of "Sun, 27 Mar 2011 14:49:16 +0100")

Sean Whitton <sean@silentflame.com> 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 src="img/avi.gif" alt="img/avi.gif" />
>
> Org seems to be outputting
>
> &lt;img src="img/avi.gif"  alt="img/avi.gif" /&gt;
>
> 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---
...
<p><img src="img/avi.gif"  alt="img/avi.gif" />
</p>
...
--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

  reply	other threads:[~2011-03-27 14:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-27 13:49 Inline images export to HTML generates &lt; and &gt; rather than < and > Sean Whitton
2011-03-27 14:09 ` Bernt Hansen [this message]
2011-03-28  8:15   ` Sean Whitton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87aaggr6xp.fsf@norang.ca \
    --to=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=sean@silentflame.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).