ghiculescu/jekyll-table-of-contents — pull request #5 by drewcrawford (2014-07-04 03:02:30+00:00)
Title: Fixing indent level when it undergoes non-incrementing changes.

I tend to write documents like this:

# Topic
## Subtopic
### Now getting into some detail
# New topic

Currently toc.js renders this as

1. Topic
1. Subtopic
1. Now getting into some detail
2. New topic

Whereas my desired rendering is

1. Topic
1. Subtopic
1. Now getting into some detail
2. New topic

This patch causes toc.js to take my `` tags more seriously, so if I go from `

` to `

` I drop all the way out to the root level.