Skip to content

similarly named headings are not linked correctly #1493

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

Closed
simonmichael opened this issue Mar 27, 2021 · 3 comments
Closed

similarly named headings are not linked correctly #1493

simonmichael opened this issue Mar 27, 2021 · 3 comments

Comments

@simonmichael
Copy link

simonmichael commented Mar 27, 2021

I believe the current release does not handle duplicated headings on a page well. Eg https://hledger.org/hledger.html has a "tags" heading under COMMANDS (https://hledger.org/hledger.html#tags) and a "Tags" heading under JOURNAL FORMAT (https://hledger.org/hledger.html#tags-1). Distinct anchors are created, but links in the page TOC and in search results point only to the first (https://hledger.org/hledger.html#tags). This can be quite confusing.
simonmichael/hledger_site#33

@ehuss
Copy link
Contributor

ehuss commented Mar 27, 2021

Thanks for the report! mdBook doesn't produce a TOC, so maybe that is from a plugin? As for the search results, issue #720 is tracking the ids not being handled correctly.

@simonmichael
Copy link
Author

simonmichael commented Mar 27, 2021 via email

@ehuss
Copy link
Contributor

ehuss commented May 24, 2021

Closing as this seems to have been an mdbook-toc issue.

@ehuss ehuss closed this as completed May 24, 2021
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