It is wonderful that a TOC can be generated from the headings of a markdown file in DT automatically but there’s something I don’t understand.
I have a file with multiple headings and a TOC is generated automatically by DT. When I click on a title in the TOC, the content of the document will move to the relevant section and the relevant section’s heading is highlighted in the source (when in source view) or in the source pane (when in side-by-side view). However, nothing happens when the file is in Preview mode (or in the preview pane of side-by-side view).
I test another file with some simple headings and the content-jumping and highlighting of heading work in both source and preview mode/pane.
Should the string format of the headings follow certain guidelines for the TOC’s mechanism to work? Thank you.
PS: Perhaps it is because the TOC’s mechanism is a find function that ignores the “#” symbol? Therefore, the heading can be found in source/source pane (exact match of the string) but not the name of the links in preview mode/pane?