I’ve been wanting to create this for awhile, as I always enjoyed when the table of contents automatically updated as I added new headings within a VS Code markdown file. Hopefully some others can find some usefulness from it too.
It’s currently waiting for review to get submitted to the community plugins, however, you can start using it here:
I see where the problem lies; if the structure STARTS out of order (e.g., the file’s first heading is H2, the next is H1, etc.), the markdown does not render properly.
The objective with this plugin was to make it as simplistic and as unintensive as possible, which is why I was using Obsidian’s native MarkdownRenderer.render method for rendering the TOC.
Over the course of the next couple days I’ll have this fixed.