Whoops, wasn't updating previousLevel when we hit a no-toc heading.