Hi,
I've posted an update at Manual talk:Table of contents#Improved Solution
Brettz95 (talk) 05:16, 14 January 2020 (UTC)Reply