Update the code to ensure that the table-of-content is correctly colorized.