emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus Pank Roulund <rasmus.pank@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug and feature request in HTML export
Date: Tue, 10 Feb 2009 22:06:40 +0100	[thread overview]
Message-ID: <82wsbyatnj.fsf@gmail.com> (raw)

Hello,
There seems to be a bug in HTML export.
I am using Org for making a (fancy) web site.
I define the top menu via a list which is made fancy via CSS.

The Org file looks like this:

    #+HTML: <div id="topbar">

      - [[file:index.org][Forside]]
      - [[file:eksempler.org][Eksempler]]

    #+HTML: </div>

The corrosponding HTML code looks like this:

    <div id="navbar">

    <ul>
    <li>
    <a href="index.html">Forside</a>
    </li>
    <li>
    <a href="eksempler.html">Eksempler</a>
    </li>
    </div>

    </li>
    </ul>

Thus, when I try to validate the site it gets errors! It should look
like 
    
    ...
    </li>
    </ul>
    </div>

I tried to insert a comment (#) after the list but Org still ended div
before ul.

I also have a couple of feature request/bug reports for html export:

First: it would be nice if one could specify the location of the title
similar to the [TABLE-OF-CONTENTS] option. At the moment it seems to
always be placed in the top of the page, which might not be desirable. 

Second: I do not know if this is a feature, but * Heading (i.e. a first
level heading) is marked as a <h2> heading. It should probably be
<h1>. At least one should be able to define it as a <h1> heading.

Third (bug): Sometimes links are rendered wrong: 
 [[http://etext.library.adelaide.edu.au/k/keynes/john_maynard/k44g/k44g.html]]
 is rendered as <a href="http://etext.library.adelaide.edu.au/k/keynes/john_maynard/k44g/k44g.html">http://etext.library.adelaide.edu.au/k/keynes/john<sub>maynard</sub>/k44g/k44g.html</a>
 notice the <sub>-tags!

Forth: Sometimes it is desirable to be able to #+HTML in links and
titles. This is not possible.
For example:
 #+TITLE:      #+HTML: <span class="latex">T<sub>E</sub>X</span>
or 
[[http://scripts.sil.org/xetex][
#+HTML: <span class="latex">X<sub>&#398;</sub>T<sub>e</sub>X</span>
]]

Thanks,
Rasmus

             reply	other threads:[~2009-02-10 21:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-10 21:06 Rasmus Pank Roulund [this message]
2009-02-10 22:53 ` Bug and feature request in HTML export Carsten Dominik
2009-02-10 23:17   ` Rasmus Pank Roulund
2009-02-11  0:51     ` Sebastian Rose
2009-02-12 18:17       ` Rasmus Pank Roulund

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=82wsbyatnj.fsf@gmail.com \
    --to=rasmus.pank@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).