-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Automatically create anchors for section headers #72
Comments
If I implement this in mdbook it's going to be an ugly hack, I would have to either parse the markdown a second time myself or parse the html outputted by pulldown-cmark. I think this should be implemented in the markdown parser. But pulldown-cmark hasn't seen any activity in a while, so I doubt that is going to happen anytime soon. :/ |
Ah interesting, I should check up on |
Since |
Yeah, but I had in mind that the browser wasn't going to scroll down if anchors were added after page load. Obviously I was wrong 😉 Thanks for the PR!
It's pretty common to add anchors to headings in web-dev, I don't understand why this isn't part of the spec yet.. And one neat thing about Rust, is that you can easily gate some parts of your code behind |
If I write something like this:
and I want to link to it later, I have to do this:
or the equivalent. GitHub and rustbook generate these kinds of links automatically, which keeps source files cleaner. Example: https://github.com/rust-lang/rust/#quick-start
The text was updated successfully, but these errors were encountered: