Updated toc extension to work with changes @ 4ff74e3.