Pagefind is able to provide context on which sections of a page match a search term, based on the HTML id attributes found on the page. No configuration is needed when indexing your site. When searching the index, you can choose whether or not to split each page into multiple results.
