Only show end nodes in ToC when appropriate