Nice! There must be at least one H1 for the table of content to be generated. In my first attempt all titles were H2 and did not generate the ToC.
There are weird breaks (space between lines) in the table of content of my note but maybe it is because of adding H1, H2 and H3? https://habla.news/a/naddr1qqskxmmdwpexzu3dvf5hgcm0d9hz6umfdckk6mmjd9ez66tww3jkuar0qgswlumqg0mpjs070wkuwp2sf2ekk6dunn5ml48efsgurah57supn5crqsqqqa28ppzr2t