markmap / markmap-vscode

Integrate markmap into VSCode
https://marketplace.visualstudio.com/items?itemName=gera2ld.markmap-vscode
MIT License
228 stars 22 forks source link

[Improvement] TOC node should focus relevant header on click #48

Open Akv2021 opened 1 year ago

Akv2021 commented 1 year ago

If the Table of Contents is present in markdown, then it'll also show up as nodes. On clicking any content in table of contents that header should be accessible i.e.

Sample file

# Main Header
## Sub Header 1
### Para 1
- This is my content

## Sub Header 2
1. There's more content.

# Main Header 2
- line 1
- line 2

It'll have the following TOC

- [Main Header](#main-header)
  - [Sub Header 1](#sub-header-1)
    - [Para 1](#para-1)
  - [Sub Header 2](#sub-header-2)
- [Main Header 2](#main-header-2)

And Following MarkMap

image
Giessen commented 6 months ago

is this issue resolved?

Akv2021 commented 1 week ago

@gera2ld Please let me know if you have any questions or need clarification.