emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "iminet@ymail.com" <iminet@ymail.com>
To: emacs-orgmode@gnu.org
Subject: html-export: Unique, non-enumerated heading-IDs according to heading
Date: Sat, 30 Jul 2011 00:41:11 +0200	[thread overview]
Message-ID: <4E333707.40504@ymail.com> (raw)

Hi.


Usually, when you export an org-document to HTML, the headings get 
enumerated IDs (which are in particular important for anchors) like this:

* this is my first heading
* the second one

This org-code (more or less) becomes:

<h2 id="sec-1">this is my first heading</h2>
<h2 id="sec-2">the second one</h2>


But this behaviour is not always ideal: If you add a heading the ID of 
all following headings changes -- unless you didn't set the CUSTOM_ID 
property manually.

So, this e-mail requests the feature that it should be possible to make 
Org automatically set the ID according to the content of the heading. E.g.…

* foobar
* this heading includes lots of spaces and some other special characters 
like "§$%&/()

… would become this:

<h2 id="foobar">foobar</h2>
<h2 
id="this_heading_includes_lots_of_spaces_and_some_other_special_characters_like_________">this 
heading includes lots of spaces and some other special characters like 
"§$%&/()</h2>



What do you think?
Wouldnt that be nice?

I think you should be able to switch between these two behaviours -- 
both have their own advantages.


Having said this,
Goodbye.

                 reply	other threads:[~2011-07-29 22:40 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=4E333707.40504@ymail.com \
    --to=iminet@ymail.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).