Patches: Browse | Submit New | Admin

[#6060] automatic table of contents for redcloth

Date:
2006-10-08 02:48
Priority:
3
Submitted By:
Suraj Kurapati (snk)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
automatic table of contents for redcloth

Detailed description
With this patch, a table of contents is automatically generated at the top of the text for RedCloth. The items in the
table of contents are just the headings in the text.

For example, 

h1. foo
h2. bar

will generate a table of contents like this:

* foo
  * bar

Hyperlinks are also generated in the table, so you can quickly access the page's contents.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2006-10-08 02:51
Sender: Suraj Kurapati

Here is an example of how the generated table of content
looks: http://people.ucsc.edu/~skurapat/wmii.html

Attached Files:

Name Description Download
rog-0.1.5_redcloth_toc.patch Download
rog-0.1.5_redcloth_toc.patch a cleaner implementation Download
rog-0.1.5_redcloth_toc.patch yet another refinement Download

Changes:

Field Old Value Date By
File Added851: rog-0.1.5_redcloth_toc.patch2006-10-10 01:56snk
File Added845: rog-0.1.5_redcloth_toc.patch2006-10-08 21:28snk
File Added844: rog-0.1.5_redcloth_toc.patch2006-10-08 02:48snk