Add table of contents if not in comment mode.