mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-23 19:06:31 +00:00
8340e16930
Use the API `resultType` on page search results to decide the link target: page/title-level matches link to the top of the page, while section-level matches keep their section anchor. The section snippet is still shown as a preview. `resultType` is read defensively since it is not yet present in the published `@gitbook/api` types. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>