toc.cpp: better render nested toc items