Open
Description
Describe the bug
If a snippet contains headings, those are added the last in the ToC.
Expected behavior
I would expect the headings to appear in the ToC according to the order by which all headings are rendered on page.
Steps to reproduce
- Create a snippet with one or more headings.
- Include the snippet in a doc.
- See the ToC's order.
Tooling
- docs-builder
- migration tooling
- I'm not sure