Skip to content

Commit d416b34

Browse files
Skip .mermaid in highlightSearchWords
1 parent 54b4230 commit d416b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/search.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class LocalSearch {
215215
const walk = document.createTreeWalker(body, NodeFilter.SHOW_TEXT, null);
216216
const allNodes = [];
217217
while (walk.nextNode()) {
218-
if (!walk.currentNode.parentNode.matches('button, select, textarea')) allNodes.push(walk.currentNode);
218+
if (!walk.currentNode.parentNode.matches('button, select, textarea, .mermaid')) allNodes.push(walk.currentNode);
219219
}
220220
allNodes.forEach(node => {
221221
const [indexOfNode] = this.getIndexByWord(keywords, node.nodeValue);

0 commit comments

Comments
 (0)