This is a merged feature request(merging feature request from @malecjan at OnClick on search result: Scroll to matched text also in Preview mode )
Use case or problem
When doing the search, the content within the .md file corresponding to the the search result is highlighted.
In the edit mode, the exact line within the .md file corresponding to the the search result is highlighted.
However, the search in preview points to the markdown block not to the specific line.
This is annoying when one tries to locate an item in a long list, and this scenario is shown as in the following gif.
Similar situation was also observed by @malecjan, in
Moreover, the backlinks in the preview mode are also victims, as you can alway not be able to locate the item in a list.
And FYI:
@WhiteNoise suggested that this is better to be posted here as a new feature request.
Proposed solution
The search result/link highlighting in editor mode supports the line-level granularity. Some alignments may be performed.
Current workaround (optional)
Quit preview mode and using the editor mode.
And I have to say, this may impact the workflow: as the picture will not shown in the editor mode, additional switching actions are expected.