emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Emery <dave@skiddlydee.com>
To: emacs-orgmode@gnu.org
Subject: HTML exporter bug? was Re: Inserting some java script
Date: Mon, 15 Jan 2007 21:23:04 +0900 (JST)	[thread overview]
Message-ID: <20070115.212304.118802196.dave@skiddlydee.com> (raw)
In-Reply-To: <2c75873c0701150334y60ceb1e7x57b5aca95643fed8@mail.gmail.com>

On Date: Mon, 15 Jan 2007 11:34:36 +0000, "Graham Smith" <myotisone@gmail.com> wrote:
> I don't really want it in every page, but I will look at that as well.
> 
> I did try the @ symbol and it didn't work. In fact I hadn't used it properly, but even using it as you have illustrated, it
> still gives me text rather than the link to the webwidget.

I just tried it myself and it comes out even weirder than what you described. I
get this:

@&lt;script type="text/javascript" language="JavaScript" src=" <a href="http://webwidget.fleck.com/?v=small_image"">http://webwidget.fleck.com/?v=small_image"</a>&gt;&lt;/script&gt;

It appears that the exporter is confused by the URL within the tags. Here's
another example that shows the same problem:

@<img src="http://staff.science.uva.nl/~dominik/passfoto.jpg" />

It gets exported as:

@&lt;img src="<a href="http://staff.science.uva.nl/~dominik/passfoto.jpg"">http://staff.science.uva.nl/~dominik/passfoto.jpg"</a>
/&gt;


Dave

> 
> Maybe I am doing something silly.
> 
> I shall have another go.
> 
> Thanks,
> 
> Graham
> 
> On 15/01/07, David Emery < dave@skiddlydee.com> wrote:
> 
>     On Date: Mon, 15 Jan 2007 10:44:11 +0000, "Graham Smith" < myotisone@gmail.com> wrote:
>     > To access Fleck I want to insert the following code at the top of  the Emacs document before publishing to HTML
>     >
>     > <!-- Start of Fleck WebWidget Code -->
>     > <script type="text/javascript" language="JavaScript" src=" http://webwidget.fleck.com/?v=small_image"></script>
>     > <!-- End of Fleck WebWidget Code -->
>     >
>     > But I can't work out how to do this - I just get the text rather than the icon.
>    
>     I think you could just add the javascript tag line before or after the style
>     info in the setting for customize->export->html->style. That would automatically
>     put it into every page.
>    
>     To put it right into a particular org file, prepending
>     an "@" to that line should make the html pass through as is.
>    
>     @<script type="text/javascript" language="JavaScript" src=" http://webwidget.fleck.com/?v=small_image"></script>
> 
>     Dave
> 

  reply	other threads:[~2007-01-15 12:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-15 10:44 Inserting some java script Graham Smith
2007-01-15 10:58 ` David Emery
2007-01-15 11:34   ` Graham Smith
2007-01-15 12:23     ` David Emery [this message]
2007-01-15 15:20       ` HTML exporter bug? was " Giovanni Ridolfi
2007-01-16 10:17       ` Carsten Dominik
2007-01-15 11:11 ` Giovanni Ridolfi
2007-01-25 12:36 ` David Emery
2007-01-25 12:49   ` Graham Smith
2007-02-20 10:16 ` Carsten Dominik
2007-02-20 11:45   ` Graham Smith

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=20070115.212304.118802196.dave@skiddlydee.com \
    --to=dave@skiddlydee.com \
    --cc=emacs-orgmode@gnu.org \
    /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).