-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Cannot search headers containing colon (:
)
#4884
Comments
Thanks for reporting. This is a feature and not a bug 😉 Normally, this isn't a problem because people don't search for mkdocs-material/src/assets/javascripts/integrations/search/query/_/index.ts Lines 63 to 84 in 6119df5
|
Fixed in a6436bd. When the query lexer returns an unknown field, we transform the query to replace the For the time being, this fix should make the search in your docs functional again 😊 |
I closed this too early. We need to keep this open until the fix is released. |
thanks for working on this. ❤️ |
Released as part of 9.0.7 |
I can confirm that Thank you very much for working on this, and getting it fixed so quickly! ❤️ |
Context
No response
Bug description
When a symbol is defined as a separator, we expect that symbol to searchable, that is the search string being tokenized exactly the same as the docs contents. Based on observations it looks like this is not the case with the built-in plugin.
Related links
Reproduction
Created by following
example.zip (browse same sources on GitHub)
Steps to reproduce
- info
fromplugins:
mkdocs serve
dash-separated
and observe match:colon:separated
and be baffled:separated
and observe tokenization works:"colon:separated"
🤞 it works because that's the usual for "exact match":Browser
No response
Before submitting
The text was updated successfully, but these errors were encountered: