Add a dynamic Table of Contents
Create a toc.js
file in your Obsidian vault, with this contents:
And then in any note which you wish to add a dynamic TOC, you just add this code:
Change the numbering style
If you want a decimal number style, you can do that via a CSS snippet:
Asked in these threads: