Add table of contents if not in comment mode.
Merge pull request #28 from ucarion/table-of-contents

Add table of contents if not in comment mode.