]> BookStack Code Mirror - bookstack/commit
Added search result preview text highlighting
authorDan Brown <redacted>
Fri, 12 Nov 2021 22:57:50 +0000 (22:57 +0000)
committerDan Brown <redacted>
Fri, 12 Nov 2021 22:57:50 +0000 (22:57 +0000)
commitf30b937bb02eea92c078ea9644e3b70bd63974d8
tree03ad9b7181e2e134b413e49b7a8bd3d06e32d51b
parent7d0724e2888f768149b425efcdc185a1c7a4be02
Added search result preview text highlighting

Created a new class to manage formatting of content for search results.
Turned out to be quite a complex task. This only does the preview text
so far, not titles or tags.

Not yet tested.
app/Entities/Tools/SearchResultsFormatter.php [new file with mode: 0644]
app/Http/Controllers/SearchController.php
resources/views/entities/list-item.blade.php