Preparation for generalizing TOC API.
Render TOC item for heading.