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

Feature Request: Links whitin the same document #86

Open
Jee-Bee opened this issue Aug 30, 2023 · 2 comments
Open

Feature Request: Links whitin the same document #86

Jee-Bee opened this issue Aug 30, 2023 · 2 comments
Labels
bug Something isn't working PR welcome Pull Request welcome

Comments

@Jee-Bee
Copy link

Jee-Bee commented Aug 30, 2023

It looks like that links whitin the same document doesn't work within NppMarkdownPanel
I did some test and it doensn't matter if it are headers with single words or multi word headers

see StackOverflow: How to link to part of the same document in Markdown?

This text should result in

# Header1

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

## Sub Header1
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

# Header2

[backlink to Header1](#header1)

[backlink to Sub Header1](#sub-header1)

Header 1

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Sub Header 1

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Header 2

backlink to header1

backlink to header1

@mohzy83 mohzy83 added the bug Something isn't working label Sep 13, 2023
@mohzy83
Copy link
Owner

mohzy83 commented Sep 13, 2023

It's a known issue. It's caused by markdig during the link generation. The problem needs further investigation.

@mohzy83 mohzy83 added the PR welcome Pull Request welcome label Sep 13, 2023
@Jee-Bee
Copy link
Author

Jee-Bee commented Sep 14, 2023

thanks for your reply

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

No branches or pull requests

2 participants