zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
49.04k stars 2.96k forks source link

Markdown Preview clickable links to headings (ToC links, for example) #18699

Open guydavies opened 3 weeks ago

guydavies commented 3 weeks ago

Check for existing issues

Describe the feature

In the Markdown preview, links to external files are clickable and open that file. I would like to have a similar capability for links to headings using the label format. This is possible in other editors (the obvious one being vscode with suitable extensions).

Ideally, clicking the link in the preview would scroll up/down to the matching heading/anchor in the preview. Even better would be if the editor and preview panes were synced so the editor also scrolled to the relevant point (probably another feature request).

If applicable, add mockups / screenshots to help present your vision of the feature

No response

skejeton commented 4 days ago

Agreed, I might implement a pull request for this feature in my free time, as I utilize tables of content often for internal documents.