(source code at https://github.com/sandraros/sandraros.github.io/blob/master/BuildSAPBlogPostTOC.html)