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

Anchor to particular row numbers #195

Open
surapuramakhil opened this issue Jun 15, 2024 · 1 comment
Open

Anchor to particular row numbers #195

surapuramakhil opened this issue Jun 15, 2024 · 1 comment

Comments

@surapuramakhil
Copy link

Just check this repo - which has done a good job in markdown navigation.
https://github.com/sudheerj/vuejs-interview-questions/blob/master/README.md

But the problem is with back to Top. Due to markdown limitation - Anchor is place to header, but ideal place would be pointing to row number.

Is there a way to this?

@PstasDev
Copy link

Hiya

The support of anchors to a particular line is not a widespread thing and I don't really find any Markdown processor which supports this. I think there is nothing wrong with the way the example you provided uses the anchors. If you have a header where you wanna link, then use that.

But also as a developer, I wouldn't create support for that as well, because every time you're making changes to the Markdown file, the lines' numbers are constantly changing with inserting lines into the text, which would make the links which are absolutely pointing at a row useless and wrong without changing them which would be an extra effort to solve.

Best regards

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