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

Desktop,Mobile: Resolves #9594: Fix table-of-contents links to headings with duplicate content #9610

Merged

Conversation

personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Dec 27, 2023

Summary

Sets uniqueSlugStartIndex to 2 to match the behavior of the version of markdown-it-anchor we're using (v5).

This fixes table-of-contents links to duplicate headings.

See also:

Fixes #9594.

@personalizedrefrigerator

This comment was marked as resolved.

@laurent22 laurent22 merged commit 430f73c into laurent22:dev Jan 4, 2024
10 checks passed
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

Successfully merging this pull request may close these issues.

[toc] markdown extension doesn't support multiple headers with identical content
2 participants