Changes in this version:
-
You can now specify how deep the ToC should be with the -l LIMIT (or –limit LIMIT) flag. For example if you don’t want to include h4,h5 and h6 elements in the ToC, simply append –limit 3
-
The ToC doesn’t include empty ul-tags anymore if all children are marked as hidden
Another change is where you can get htmltoc.rb from now on:
http://zerokspot.com/code/htmltoc.rb/
This is also a darcs repository so if you want to get older versions, you need darcs :)
Do you want to give me feedback about this article in private? Please send it to comments@zerokspot.com.
Alternatively, this website also supports Webmentions. If you write a post on a blog that supports this technique, I should get notified about your link π