Skip to content

Fix: Decrase anchor validation treeprocessor prioriy#3945

Open
joapuiib wants to merge 3 commits intomkdocs:masterfrom
joapuiib:fix/anchor-validation-priority
Open

Fix: Decrase anchor validation treeprocessor prioriy#3945
joapuiib wants to merge 3 commits intomkdocs:masterfrom
joapuiib:fix/anchor-validation-priority

Conversation

@joapuiib
Copy link

Resolves #3690

(...) the suggested solution is to decrease the treeprocessor processor priority to 3.9:

md.treeprocessors.register(self, "mkdocs_extract_anchors", priority=5) # Same as 'toc'.

Copy link
Contributor

@pawamoy pawamoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! More than just tests passing, we should also look out for regressions by building a few projects with this change, asserting there's no issue. I'll do that myself anyway, but you can also do it.

Co-authored-by: Timothée Mazzucotelli <dev@pawamoy.fr>
@joapuiib
Copy link
Author

I've tested it with one of my sites that was giving the anchor validation false positive, and it seems that it works with no issues.

However, it might be better if you test it as well, just in case 😅

@byrnereese
Copy link

Nudge. I would love to see this fix get merged. :)

@bil0u
Copy link

bil0u commented Oct 7, 2025

Hi, I wanted to follow up on this PR.
Is there any remaining feedback or required change before it can be merged?

@wwarriner
Copy link

Verified working on our documentation.

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.

Anchor validation false positives after upgrading to 1.6

5 participants