Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
fix: highlight all occurences of search hit in descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvatt committed Nov 21, 2023
1 parent ae56aa4 commit ee5a615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/search/searchResultLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export const SearchResultLink = ({
disallowedElements={['h1', 'h2', 'h3', 'h4', 'h5', 'code', 'pre']}
unwrapDisallowed={true}
>
{description.split(/\r?\n/).slice(0, 4).join('\n').replace("((START))", "_").replace("((STOP))", "_")}
{description.split(/\r?\n/).slice(0, 4).join('\n').replaceAll("((START))", "_").replaceAll("((STOP))", "_")}
</ReactMarkdown>
)}
{datasets && !!datasets.length && (
Expand Down

0 comments on commit ee5a615

Please sign in to comment.