TOC navigation: when selecting a header, the header above gets highlighted

In obsidian publish, the TOC of a note is displayed and used for navigation.
When I select a header/title within the list, the selection is done and I see the right content in the note with the title highlighted (in yellow) inside the note.
However, this header is not hightlighted in the TOC.
Instead, the header just above is highlighted

Steps to reproduce

  • create a note with several headers of different level: H2, H3, H4 …
  • publish your note to obsidian publish and ensure you chose to display the TOC
  • select titles/headers inside the TOC to navigate
  • check inside the TOC which header is actually highlighted/selected

you can reproduces this directly @ Format your notes - Obsidian Help, by selecting header 3 or 2

Expected result

the selected header gets hightlighted in the TOC

Actual result

the header located just above gets highlighted instead of the selected one

Environment

  • Operating system: Windows 7, Google Chrome
  • Obsidian version: v0.11.0

Additional information

Ok, I can repro

Same problem 2 years later, hoping to get a fix for this. Thank you.

A fix for this will be deployed in the next days

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.