vmg/redcarpet — pull request #279 by robin850 (2013-07-18 14:58:48+00:00)
Title: Html toc render

Hello,

This pull request allows the user to pass a `max_level` option when instantiating a new `HTML_TOC` render object in order to limit the nesting level in the generated table of content. For example:

~~~ruby
Redcarpet::Markdown.new(Redcarpet::Render::HTML_TOC.new(max_nesting: 2))
~~~

Resolve #267

Moreover, I've added some tests since there weren't any test related to this render. Please tell me if I'm doing it the right way ; I'm not sure about the assertions.

Have a nice day.