diff --git a/index.html b/index.html
index b6e3e90..400679d 100644
--- a/index.html
+++ b/index.html
@@ -152,13 +152,26 @@ function search_hits(needle) {
hitList=[];
var headName="";
for (l=0; l-1) {
+ /* current header matches */
+ hitList.push(l);
+ continue
+ }
+ }
var match=linkReg.exec(linkList[l].toLowerCase());
if (match != null ) {
+ /* matches to markdown link */
if ( match[2].indexOf(needle)>-1 ) { hitList.push(l); }
continue
}
match=linkPlain.exec(linkList[l].toLowerCase());
if (match != null ) {
+ /* matches to plain link */
if ( match[2].indexOf(needle)>-1 ) { hitList.push(l); }
continue
}
@@ -327,7 +340,7 @@ var config = {
-
+