toc on page with milestones results in mess
I have a page like this:
== Milestones ==
=== 0 ===
=== 1 ===
<<milestone 1>> }}}
It goes all the way to 4 plus another two. Riveting stuff. Anyway the TOC macro completely messes up. Sections where the milestone list is empty show up ok in the toc, but if there are any matching tickets then they get expanded into the toc too in a mangled form making an awful mess.
An example page is in a private repository.