As dave and mark have said I am confident a toc to anchors can be done since the workaround became available and people have seperatly generated lists from content.
A posible approach is to create a macro you pass a filter to that lists a set of tiddlers inside another tiddler generating both the toc and the anchors to each heading. This could be extended to have additional features.
Until 5.1.20 you could count the number of tiddlers you need headings for, then provide this as the top number in the range operator, to increment the id you generate on the fly. Use qualify to make your anchor ids unique to this listing.
List this range once to create the links or toc and a second time to generate tge anchors and tranclude the tiddler content.
I would build this but Im on the road for a few days (to Hill End NSW)
regards
tony
Regards
!.#ToC My New First Header
<h1 class="ToC" id=#SomeUniqueText/Number-BasedOnThe-QualifyMacro+NumberIncrementedForEachHeader> My New First Header</h1>