Skip to content

Commit c6ea40d

Browse files
committed
bugfix(search) not returning correct results
- updated search to use h3 and h4 headings from markdown
1 parent ab28b55 commit c6ea40d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/javascripts/app/_search.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
$(bind);
2121

2222
function populate() {
23-
$('h1, h2').each(function() {
23+
$('h1, h2, h3, h4').each(function() {
2424
var title = $(this);
25-
var body = title.nextUntil('h1, h2');
25+
var body = title.nextUntil('h1, h2, h3, h4');
2626
index.add({
2727
id: title.prop('id'),
2828
title: title.text(),

0 commit comments

Comments
 (0)