[Soks] [Fwd: *cloth and ToC]

Soks

Copied from Email on Thu, 17 Mar 2005 11:09:04 -0500 from Bil Kleb (Bil.Kleb@nasa.gov)*

Might want to watch this one...

-------- Original Message --------
Subject: *cloth and ToC
Date: Fri, 18 Mar 2005 00:44:50 +0900
From: Guillaume Marcais <guslist@free.fr>
To: ruby-talk@ruby-lang.org (ruby-talk ML)

Is there a way to extract a table of content of a text with redcloth of
bluecloth?

What I have in mind is the ability to extract all the headers of a text
(h1., h2., etc. in textile) and generate: anchors within the html page
on these headers and a table of content with links to the headers.

So at the end of a wiki page I could add something like:

<div class="ToC">
   ToC. <-- Replaced by *cloth bye the table of content -->
</div>

and get a beautiful and well linked table of content for free.

Is there already such a feature? Is it a reasonable feature request?

Guillaume.

_______________________________________________
Soks-discuss mailing list
Soks-discuss@rubyforge.org
http://rubyforge.org/mailman/listinfo/soks-discuss

Edit this page or watch for changes using RSS.