emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Stephen <sdeasey+mail@gmail.com>
To: Emacs OrgMode <emacs-orgmode@gnu.org>
Subject: Bug: javascript array interpreted as footnote in HTML section
Date: Fri, 16 Apr 2010 15:29:21 +0100	[thread overview]
Message-ID: <y2ka9250c0b1004160729j67120c96m818eecb9b7c7d1a4@mail.gmail.com> (raw)

I would like to embed some javascript code at the bottom of an
exported HTML document:

#+BEGIN_HTML
<script type="text/javascript">
<!--/*--><![CDATA[/*><!--*/
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-123456-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type =
'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
'http://www') + '.google-analytics.com/ga.js';
    (document.getElementsByTagName('head')[0] ||
document.getElementsByTagName('body')[0]).appendChild(ga);
  })();
/*]]>*/-->
</script>
#+END_HTML

I would expect this to be left alone by org-mode because it is in a
BEGIN_HTML section. Unfortunately, the [0] syntax is interpreted as a
footnote and now a broken footnotes section appears at the bottom of
the document (there are no other footnotes). The HTML code is left as
is, ie. the javascript array syntax is not turned into a link to the
footnote.

I think this is a bug. org-mode should not try to interpret literal HTML.

                 reply	other threads:[~2010-04-16 14:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=y2ka9250c0b1004160729j67120c96m818eecb9b7c7d1a4@mail.gmail.com \
    --to=sdeasey+mail@gmail.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).