Skip to content

Commit 2971b18

Browse files
authored
Merge pull request rust-lang#978 from ehuss/bump-elasticlunr
Bump elasticlunr.
2 parents 6b1e580 + dcb1886 commit 2971b18

File tree

5 files changed

+1056
-142
lines changed

5 files changed

+1056
-142
lines changed

Cargo.lock

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/dummy_book/src/SUMMARY.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- [Includes](first/includes.md)
99
- [Recursive](first/recursive.md)
1010
- [Markdown](first/markdown.md)
11+
- [Unicode](first/unicode.md)
1112
- [Second Chapter](second.md)
1213
- [Nested Chapter](second/nested.md)
1314

tests/dummy_book/src/first/unicode.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Unicode stress tests
2+
3+
Please be careful editing, this contains carefully crafted characters.
4+
5+
Two byte character: spatiëring
6+
7+
Combining character: spatiëring
8+
9+
Three byte character: 书こんにちは
10+
11+
Four byte character: 𐌀‮𐌁‮𐌂‮𐌃‮𐌄‮𐌅‮𐌆‮𐌇‮𐌈‬
12+
13+
Right-to-left: مرحبا
14+
15+
Emoticons: 🔊 😍 💜 1️⃣
16+
17+
right-to-left mark: hello באמת!‏
18+
19+
20+
Zalgo: ǫ̛̖̱̗̝͈̋͒͋̏ͥͫ̒̆ͩ̏͌̾͊͐ͪ̾̚
21+

tests/rendered_output.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const TOC_SECOND_LEVEL: &[&str] = &[
3131
"1.2. Includes",
3232
"1.3. Recursive",
3333
"1.4. Markdown",
34+
"1.5. Unicode",
3435
"2.1. Nested Chapter",
3536
];
3637

@@ -513,7 +514,7 @@ mod search {
513514
assert_eq!(docs[&some_section]["body"], "");
514515
assert_eq!(
515516
docs[&summary]["body"],
516-
"Dummy Book Introduction First Chapter Nested Chapter Includes Recursive Markdown Second Chapter Nested Chapter Conclusion"
517+
"Dummy Book Introduction First Chapter Nested Chapter Includes Recursive Markdown Unicode Second Chapter Nested Chapter Conclusion"
517518
);
518519
assert_eq!(docs[&summary]["breadcrumbs"], "First Chapter » Summary");
519520
assert_eq!(docs[&conclusion]["body"], "I put <HTML> in here!");

0 commit comments

Comments
 (0)