Open bertiewooster opened 2 months ago
It seems the highlighter wraps in a span tag:
<span class="highlighted" style="">am</span>
And the parent <p class="rubic"
tag in this case is using flexbox, which has something to do with the resulting behaviour.
Description
When searching the Python API documentation, if the user searches for text that happens to have part of the word "Examples", they then go to a page with an Examples heading, the search text can be split over multiple lines. For example, if you search for "pl", then click polars.DataFrame.drop_in_place, the heading "Examples" is split over three lines with the search term "pl" on its own line:
This is a problem for the Examples heading but not Parameters, for example if you search for "am" then click polars.align_frames:
Perhaps this has to do with the interaction between the highlighting tool and the formatting of the Examples heading?
Link
https://docs.pola.rs/api/python/stable/search.html?q=pl