all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* html-export: Unique, non-enumerated heading-IDs according to heading
@ 2011-07-29 22:41 iminet
  0 siblings, 0 replies; only message in thread
From: iminet @ 2011-07-29 22:41 UTC (permalink / raw)
  To: emacs-orgmode

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-29 22:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-29 22:41 html-export: Unique, non-enumerated heading-IDs according to heading iminet

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.