FIX: Search menu regression (#13321)

Turns out the extra `<span>` is crucial. (TODO: this codepath needs tests…)
This commit is contained in:
Jarek Radosz 2021-06-08 03:30:26 +02:00 committed by GitHub
parent bd2b2bcf9c
commit 45971d8c3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,7 +161,9 @@ createSearchResult({
this.siteSettings.use_pg_headlines_for_excerpt &&
result.topic_title_headline
? new RawHtml({
html: emojiUnescape(result.topic_title_headline),
html: `<span>${emojiUnescape(
result.topic_title_headline
)}</span>`,
})
: new Highlighted(topic.fancyTitle, term)
),