Ignore SVG text elements in search highlighting
This commit is contained in:
parent
98088c91dd
commit
e5d5f5d02b
1 changed files with 2 additions and 1 deletions
|
|
@ -29,7 +29,8 @@ window.search = window.search || {};
|
||||||
searchicon = document.getElementById('search-toggle'),
|
searchicon = document.getElementById('search-toggle'),
|
||||||
content = document.getElementById('content'),
|
content = document.getElementById('content'),
|
||||||
|
|
||||||
mark_exclude = [],
|
// SVG text elements don't render if inside a <mark> tag.
|
||||||
|
mark_exclude = ["text"],
|
||||||
marker = new Mark(content),
|
marker = new Mark(content),
|
||||||
URL_SEARCH_PARAM = 'search',
|
URL_SEARCH_PARAM = 'search',
|
||||||
URL_MARK_PARAM = 'highlight',
|
URL_MARK_PARAM = 'highlight',
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue