Skip to content

Commit 1619596

Browse files
vezworkcderv
andauthored
Add q param to algolia search, fix search term highlighting across html nodes (#14080)
* Add q param to algolia search, add highlighting that works when search term is across multiple html nodes * Reorganize a lil * Fix search tab activation regression: preserve active tab and pageshow timing Adapt openAllTabsetsContainingEl to: - Skip tab activation when the active pane already contains a match - Defer tab activation to pageshow so it runs after tabsets.js restores localStorage state (search activation wins over stored preference) - Scroll to first visible match after tab activation settles - Fix implicit global variable (const leaf) * simplify scrollToFirstVisibleMatch * Add q param to algolia search, add highlighting that works when search term is across multiple html nodes --------- Co-authored-by: Christophe Dervieux <[email protected]>
1 parent ee0f68b commit 1619596

2 files changed

Lines changed: 193 additions & 156 deletions

File tree

news/changelog-1.9.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ All changes included in 1.9:
126126
- ([#13910](https://github.com/quarto-dev/quarto-cli/issues/13910)): Add support for `logo: false` to disable sidebar and navbar logos when using `_brand.yml`. Works in website projects (`sidebar.logo: false`, `navbar.logo: false`) and book projects (`book.sidebar.logo: false`, `book.navbar.logo: false`).
127127
- ([#13932](https://github.com/quarto-dev/quarto-cli/pull/13932)): Add `llms-txt: true` option to generate LLM-friendly content for websites. Creates `.llms.md` markdown files alongside HTML pages and a root `llms.txt` index file following the [llms.txt](https://llmstxt.org/) specification.
128128
- ([#13951](https://github.com/quarto-dev/quarto-cli/issues/13951)): Fix `image-lazy-loading` not applying `loading="lazy"` attribute to auto-detected listing images.
129-
- ([#14003](https://github.com/quarto-dev/quarto-cli/pull/14003)): Add text fragments to search result links so browsers scroll to and highlight the matched text on the target page.
130129
- ([#9802](https://github.com/quarto-dev/quarto-cli/issues/9802), [#14047](https://github.com/quarto-dev/quarto-cli/issues/14047)): Fix search term highlighting disappearing on page scroll or layout events when navigating from search results. (author: @jtbayly, [#13442](https://github.com/quarto-dev/quarto-cli/pull/13442))
130+
- ([#14080](https://github.com/quarto-dev/quarto-cli/pull/14080)): Algolia search results now highlight matching terms on the target page. Search term highlighting also works when matches span across formatted text (e.g., inline code, syntax highlighting).
131131

132132
### `book`
133133

0 commit comments

Comments
 (0)