Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

Bug: TOC sidebar, source editor and rendered preview cannot sync scroll position mutually

Open bbowin opened this issue 3 months ago • 3 comments

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.

  1. Clicking an item in TOC sidebar only scrolls the rendered preview, the cursor in source editor does not jump to corresponding source line.
  2. 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

  1. Open a long markdown document with multi‑level headings.
  2. Click an entry in TOC sidebar.
  3. Observe: preview jumps, but source editor cursor stays at original position.
  4. Scroll source editor manually.
  5. 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

Image

bbowin avatar Sep 01 '26 22:09 bbowin

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.

bbowin avatar Sep 01 '26 23:09 bbowin

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.

bbowin avatar Sep 01 '26 23:09 bbowin

应该修掉了,这几天发版。先close了

PathGao avatar Sep 02 '26 01:09 PathGao