Want to take part in these discussions? Sign in if you have an account, or apply for one below
Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
This issue came up here before, and it just came up in the HoTT mailing list again, too:
the numbering of definitions/propositions/theorems on nLab pages is unfortunately invisible to the browser’s search functionality.
If you go to a page with a “Defintion 2” – created via automatic numbering instead of with “2” entered by hand in the source code – and then make your browser search for “Definition 2”, then it won’t find it.
This here at least to remind us of this problem. Of course if anyone knows how this might be fixed, then all the better.
I’m inclined to say this is a browser problem – even if all the major browsers have the same problem! It’s not surprising if you know how things work under the hood: the number is generated by a CSS rule (specifically, a :after
pseudo-element with a content
attribute), which is essentially the same as how numbers for the items in an <ol>
are generated. But no-one is surprised that searching for a number never matches the labels in a list.
They aren’t? I would expect searching on a page to look through all the visible text on that page, regardless of how it was generated.
This should be fixed now, though you may have to clear your cache for it to take effect though. I just replaced the CSS with some JavaScript (this was kind of an abuse of CSS anyway).
Thanks, Adeel, excellent!
1 to 5 of 5