Skip to content

Commit fa254ca

Browse files
committed
Actually remove code blocks from search index
Closes #2065
1 parent 252bbe0 commit fa254ca

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

components/search/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@ static AMMONIA: Lazy<ammonia::Builder<'static>> = Lazy::new(|| {
1414
let mut clean_content = HashSet::new();
1515
clean_content.insert("script");
1616
clean_content.insert("style");
17-
let mut rm_tags = HashSet::new();
18-
rm_tags.insert("pre");
17+
clean_content.insert("pre");
1918
let mut builder = ammonia::Builder::new();
2019
builder
2120
.tags(HashSet::new())
22-
.rm_tags(rm_tags)
2321
.tag_attributes(HashMap::new())
2422
.generic_attributes(HashSet::new())
2523
.link_rel(None)
@@ -89,7 +87,6 @@ fn fill_index(
8987
row.push(body);
9088
};
9189
}
92-
9390
row
9491
}
9592

0 commit comments

Comments
 (0)