Not sure if this is a content issue in TestCases.WebLeftBar
, or an issue in the core.
It's a bug in the way TOC works. It processes the entire rendered topic, which includes <style> tags in the testcases web. These style sections have CSS that matches the headerPatternSp RE, using the compatibility support for # headers (which have never been deprecated so cannot be removed).
I have removed the (undocumented)
heading syntax. This removes the risk of someone stumbling over the syntax again, and it was never documented anyway.
Note that because of the way TOC works it can still match lines in comments, or possibly other lines in style or script tags. Because of the inherent line-by-line processing it performs, it should be re-implemented as a preRenderingHandler in a plugin.
could the existing (core) code not be retired in favour of the TWiki:Plugins.TocPlugin