When exporting heading levels that immediate precede the Content by Label macro, the specific heading level is not included in the Table of Contents (ToC) and is not numbered in the export content.
Steps to reproduce:
Create a page
Add a Heading level 1
Add a Content by Label macro underneath the heading level 1
Export the page using the Documentation template
Expected result: The ToC includes the heading level and the heading level is numbered in the generated PDF export
Actual result: The ToC does not include the heading level and the heading level content is not numbered in the generated PDF export.
Add a line break between the heading level and the Content by Label macro on the Confluence page
Add some content in the List Title parameter for the Content by Label macro