[tw5] Table of content - reference title of current tiddler


I am using the TOC macro and would like to use the title of tiddler itself as the tag. So something like:
<<toc-expandable ‘title of this tiddler’ >>

How do I reference the title of the tiddler itself inside the macro ?


You need to invoke the macro via the macrocall widget:

<$macrocall $name=toc-expandable tag=<> />

1 Like

Thanks Mark!