Thread:Project:Support desk/Sections added with tag extension do not show up in TOC

I have written a tag extension that allows for parameters to be given with a new section, which is processed by a  custom tag. I have dealt with the nesting issue 1310 by implementing the suggested amendments to.

Everything works just fine, the sections are displayed with their correct header levels etc.etc.

There is just one problem. Namely, that the sections written using this  tag do not show up in the table of contents. Some s revealed to me that these headers do get their UNIQ modifiers. But apparently the TOC is incapable of taking these extra sections into account.

Please note that I am not looking for a solution that involves replacing the tag with a parser function; due to extensive presence of $\LaTeX$ the inability to use double closing braces anywhere is too crippling. Furthermore, entering whole sections as an argument to a parser function is obviously not a good and readable coding style.

Thank you for looking into this.