To add to this: a TOC feature like Markdown All in One in vscode would be perfect.
The problem with one of the previous suggestions mentioning DataView or this obsidian-automatic-table-of-contents plugin is they’re only viewable in Obsidian. If we were to commit this to our team wiki, then readers would see this:
```table-of-contents
```
instead of a table of contents.