Create a Markdown file as usual, set a heading (any level heading will have this issue, just use the hash tag prefixes followed by a space and your heading name).
Change the heading name to include a number and a dot or a right parenthesis.
Notice now the TOC lost the heading number!
Screenshot: Green arrows show correct TOC (Outline of Heading) and the red show the incorrect interpretation due to loss of the prefix numbering.
I started using hyphens (even though it looks ugly) instead of a dot or a parenthesis as it should be in a heading and it works just for my notes, not for sharing as that may confuse people.
I find that numbered lists are often fundamental for structuring a text and for an overall vision in the TOC. Can anyone tell us if there is a fix for this problem?
If this isn’t planned to be fixed in the short run, it’s a good idea to make a plugin that fixes this instead. And I’m pretty sure it’s not that hard.
You can refer to this code to render MathJax in the outline for how to modify what’s displayed in it.
@binjominCan you send me a copy of the note that my plugin failed on?
Now I can confirm it’s it was not working and this is was due to the update from Obsidian v1.4 to v.1.5. I will try to fix it. I have fixed it and released it as v0.2.0.
Thank you for letting me know.
FYI, the Quiet Outline plugin has a more advanced feature (but not Obsidian’s native outline view).