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 internal HTML id's conflict with header id's. #880

Open
ehuss opened this issue Feb 27, 2019 · 0 comments
Open

mdbook internal HTML id's conflict with header id's. #880

ehuss opened this issue Feb 27, 2019 · 0 comments
Labels
A-Links Area: Issues with links

Comments

@ehuss
Copy link
Contributor

ehuss commented Feb 27, 2019

If there is a page with a header of "Rust", then the fragment URL will not work for that section because there is a conflict with the id used by the theme selector.

To reproduce, create a page with ## Rust. If you try to click on the header, the right-pointing quotation mark does not appear. The #rust fragment does not scroll to the section. The same will happen with other sections with the same name as a theme.

This is a problem with the rust-lang/rust linkchecker which requires that all id's are unique.

Perhaps mdbook id's (like the theme buttons) should use more unique id names (maybe mdbook- prefix)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Links Area: Issues with links
Projects
None yet
Development

No branches or pull requests

1 participant