ToC not working when headers are inside a div?

I think this was mentioned previously, if I understand it right:

5 Likes