Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Akv2021 opened this issue Jun 10, 2023 · 2 comments
Closed

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

Akv2021 opened this issue Jun 10, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Akv2021
Copy link

Akv2021 commented Jun 10, 2023

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.

  • From below sample file, On clicking "Para 1" in markmap, it should
  1. either open the md file with that section in focus (same as clicking on "Para 1" in TOC inside Markdown file.) OR
  2. Focus on "Para 1" node in Markmap. [Preferred since we are navigating in same file/view]
  • Currently it tries to open a file named #para-1 in the same directory. Which results in a "file not found" view.

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

@Akv2021 Akv2021 added the bug Something isn't working label Jun 10, 2023
@Akv2021 Akv2021 changed the title [Improvement] TOC node should focus relevant head on click [Improvement] TOC node should focus relevant header on click Jun 10, 2023
@gera2ld gera2ld transferred this issue from markmap/markmap Jun 30, 2023
@Giessen
Copy link

Giessen commented May 23, 2024

is this issue resolved?

@Akv2021
Copy link
Author

Akv2021 commented Nov 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants