Steps to reproduce 1. Create Page-A.WebHome with following content:
{{toc/}}
== Section 1 ==
== Section 2 ==
{{velocity}}
#foreach ($section in ['Section 3', 'Section 4'])
== $section ==
#end
== Section 1000 ==
{{/velocity}}
The generated TOC contains the 5 sections headings, as expected 2. Create Page-B.WebHome with following content:
{{toc reference="Page-B.WebHome"/}}
Expected result The generate TOC in Page-B is the same as the one generated in Page-A. Actual result In Page-B, the generated TOC contains only the headings outside the Velocity macro, i.e.:
|