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

Links with headers/anchors break #28

Open
JestDotty opened this issue Mar 29, 2019 · 3 comments
Open

Links with headers/anchors break #28

JestDotty opened this issue Mar 29, 2019 · 3 comments

Comments

@JestDotty
Copy link

home.md

# Root

[a link](file/somwhere.md)

file/somwhere.md

# somewhere
- over the rainbow
# elsewhere
- idk

works nicely

but if you try this it doesn't...
home.md

# Root

[a link](file/somwhere.md#elsewhere)

It tries to make a file named somwhere.md#elsewhere when clicked

Similarly, [a link](#elsewhere) tries to make a file called #elsewhere.


I am using this in the atom extension but I think it probably has to do with this project missing the feature.

@dundalek
Copy link
Owner

Thanks for the report, that makes sense.

We can probably strip out the part after hash in the case of [a link](file/somwhere.md#elsewhere). But where would you expect the link to point out in the case of [a link](#elsewhere)?

@JestDotty
Copy link
Author

JestDotty commented Mar 31, 2019 via email

@dundalek
Copy link
Owner

Having anchor to another specific node might be cool. However, probably more effort than I have time to put in. I will see what can be done when I find some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants