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

mdbook does not create distinct links for similarly named headings #33

Closed
simonmichael opened this issue Mar 27, 2021 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@simonmichael
Copy link
Owner

simonmichael commented Mar 27, 2021

The current mdbook site does not handle duplicated headings on a page well. Eg https://hledger.org/hledger.html has a Tags section under COMMANDS (https://hledger.org/hledger.html#tags) and also under JOURNAL FORMAT (https://hledger.org/hledger.html#tags-1). Distinct anchors are created, but links in the page TOC and in search results all point to the first (https://hledger.org/hledger.html#tags). This is quite confusing.
rust-lang/mdBook#1493

[See also simonmichael/hledger#1534.]

@simonmichael
Copy link
Owner Author

simonmichael commented Dec 7, 2021

This is mostly resolved except for links in search results: rust-lang/mdBook#1579.

@simonmichael
Copy link
Owner Author

Seems resolved.

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

1 participant