Bug: TOC sidebar, source editor and rendered preview cannot sync scroll position mutually
Markpad version
2.7.4
How did you install it?
Windows — installer (Markpad_…_setup.exe)
OS and version
Windows 11 24H2 x64
What happens, and what you expected instead
The TOC sidebar, markdown source editor pane, and rendered preview pane are not linked.
- Clicking an item in TOC sidebar only scrolls the rendered preview, the cursor in source editor does not jump to corresponding source line.
- Scrolling the source editor will not update the highlight of current chapter in TOC sidebar.
For long markdown documents, it is inconvenient to cross‑reference source code and rendered content.
Steps to reproduce
- Open a long markdown document with multi‑level headings.
- Click an entry in TOC sidebar.
- Observe: preview jumps, but source editor cursor stays at original position.
- Scroll source editor manually.
- Observe: TOC sidebar highlight does not follow current editing position.
The Markdown that triggers it
- Click TOC item: both preview pane AND source editor jump to the matching position.
- When scrolling source editor, TOC sidebar highlight updates to reflect current heading.
Screenshots, and anything else
Correction: I am actually running Markpad 2.7.6, not 2.7.4 as filled in the template form. All other reproduction conditions remain unchanged: Windows 11 24H2 x64, installed via Windows installer.
Minor note: the "The Markdown that triggers it" field accidentally contained expected‑behavior text. Any long markdown document with multi‑level headings can reproduce this sync‑scroll bug. No special markdown syntax is required.
应该修掉了,这几天发版。先close了