* Inline images export to HTML generates < and > rather than < and >
@ 2011-03-27 13:49 Sean Whitton
2011-03-27 14:09 ` Bernt Hansen
0 siblings, 1 reply; 3+ messages in thread
From: Sean Whitton @ 2011-03-27 13:49 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 2966 bytes --]
Dear all,
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
<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.
===
(require 'org-publish)
(setq org-publish-project-alist
'(
("org-notes"
:base-directory "~/tmp/org-html-export/"
:base-extension "org"
:publishing-directory "/srv/http/v7g"
:recursive t
:publishing-function org-publish-org-to-html
:headline-levels 4 ; Just the default for this project.
; :auto-preamble t
:auto-sitemap t ; Generate sitemap.org automagically...
:sitemap-filename "sitemap.org" ; ... call it sitemap.org (it's the default)...
:sitemap-title "Sitemap" ; ... with title 'Sitemap'.
:sitemap-style 'tree
:sitemap-sort-folders 'last
:style "<base href=\"/v7g/\" target=\"_top\" />
<link rel=\"stylesheet\" type=\"text/css\" href=\"/v7g/inc/v7.css\" media=\"screen\" />
<link rel=\"stylesheet\" type=\"text/css\" href=\"/v7g/inc/cols.css\" />
<script type=\"text/javascript\" src=\"/v7g/inc/css3-multi-column.js\"></script>"
:style-include-default nil
:exclude "sitemap.org"
:html-preamble "<!--#include virtual=\"/v7g/inc/head.inc\" -->
<h1>%t</h1>"
:html-postamble "</div>
<!--#include virtual=\"/v7g/inc/foot1.inc\" -->
<!--#include virtual=\"/v7g/inc/sitemap.shtml\" -->
<!--#include virtual=\"/v7g/inc/foot2.inc\" -->
%c
<!--#include virtual=\"/v7g/inc/foot3.inc\" -->
<div>"
:html-extension "shtml"
)
("org-static"
:base-directory "~/tmp/org-html-export/"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|inc\\|"
:publishing-directory "/srv/http/v7g"
:recursive t
:publishing-function org-publish-attachment
)
("org" :components ("org-notes" "org-static" "org-sitemap"))
("org-sitemap"
:base-directory "~/tmp/org-html-export/"
:base-extension "org"
:publishing-directory "/srv/http/v7g/inc"
:publishing-function org-publish-org-to-html
:body-only t
:html-extension "shtml"
)
))
===
--
Sean Whitton / <sean@silentflame.com>
OpenPGP KeyID: 0x3B6D411B
http://seanwhitton.com/
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Inline images export to HTML generates < and > rather than < and >
2011-03-27 13:49 Inline images export to HTML generates < and > rather than < and > Sean Whitton
@ 2011-03-27 14:09 ` Bernt Hansen
2011-03-28 8:15 ` Sean Whitton
0 siblings, 1 reply; 3+ messages in thread
From: Bernt Hansen @ 2011-03-27 14:09 UTC (permalink / raw)
To: Sean Whitton; +Cc: emacs-orgmode
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
>
> <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---
...
<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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Re: Inline images export to HTML generates < and > rather than < and >
2011-03-27 14:09 ` Bernt Hansen
@ 2011-03-28 8:15 ` Sean Whitton
0 siblings, 0 replies; 3+ messages in thread
From: Sean Whitton @ 2011-03-28 8:15 UTC (permalink / raw)
To: Bernt Hansen; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 714 bytes --]
Hi Bernt,
On 27 Mar 2011 at 14:09Z, Bernt Hansen wrote:
> 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
> * Test export
> [[file:img/avi.gif]]
> ...
> <p><img src="img/avi.gif" alt="img/avi.gif" />
> </p>
> ...
> Maybe try upgrading to the latest development snapshot of org?
> I'm using Org-mode version 7.5 (release_7.5.115.g00134)
That seems to work, thanks. I thought I was already on the latest git
snapshot (or pretty close) but apparently not.
Thanks for the welcome.
S
--
Sean Whitton / <sean@silentflame.com>
OpenPGP KeyID: 0x3B6D411B
http://seanwhitton.com/
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-28 8:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-27 13:49 Inline images export to HTML generates < and > rather than < and > Sean Whitton
2011-03-27 14:09 ` Bernt Hansen
2011-03-28 8:15 ` Sean Whitton
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).