Ignore SVG text elements in search highlighting

This commit is contained in:
Eric Huss 2025-04-17 07:39:22 -07:00
parent 98088c91dd
commit e5d5f5d02b

View file

@ -29,7 +29,8 @@ window.search = window.search || {};
searchicon = document.getElementById('search-toggle'),
content = document.getElementById('content'),
mark_exclude = [],
// SVG text elements don't render if inside a <mark> tag.
mark_exclude = ["text"],
marker = new Mark(content),
URL_SEARCH_PARAM = 'search',
URL_MARK_PARAM = 'highlight',