Skip to content

Commit

Permalink
Merge pull request #978 from ehuss/bump-elasticlunr
Browse files Browse the repository at this point in the history
Bump elasticlunr.
  • Loading branch information
ehuss committed Jul 13, 2019
2 parents b91e5c8 + 6199e4d commit d6088c8
Show file tree
Hide file tree
Showing 5 changed files with 1,056 additions and 142 deletions.
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tests/dummy_book/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- [Includes](first/includes.md)
- [Recursive](first/recursive.md)
- [Markdown](first/markdown.md)
- [Unicode](first/unicode.md)
- [Second Chapter](second.md)
- [Nested Chapter](second/nested.md)

Expand Down
21 changes: 21 additions & 0 deletions tests/dummy_book/src/first/unicode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Unicode stress tests

Please be careful editing, this contains carefully crafted characters.

Two byte character: spatiëring

Combining character: spatiëring

Three byte character: 书こんにちは

Four byte character: 𐌀‮𐌁‮𐌂‮𐌃‮𐌄‮𐌅‮𐌆‮𐌇‮𐌈‬

Right-to-left: مرحبا

Emoticons: 🔊 😍 💜 1️⃣

right-to-left mark: hello באמת!‏


Zalgo: ǫ̛̖̱̗̝͈̋͒͋̏ͥͫ̒̆ͩ̏͌̾͊͐ͪ̾̚

3 changes: 2 additions & 1 deletion tests/rendered_output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const TOC_SECOND_LEVEL: &[&str] = &[
"1.2. Includes",
"1.3. Recursive",
"1.4. Markdown",
"1.5. Unicode",
"2.1. Nested Chapter",
];

Expand Down Expand Up @@ -513,7 +514,7 @@ mod search {
assert_eq!(docs[&some_section]["body"], "");
assert_eq!(
docs[&summary]["body"],
"Dummy Book Introduction First Chapter Nested Chapter Includes Recursive Markdown Second Chapter Nested Chapter Conclusion"
"Dummy Book Introduction First Chapter Nested Chapter Includes Recursive Markdown Unicode Second Chapter Nested Chapter Conclusion"
);
assert_eq!(docs[&summary]["breadcrumbs"], "First Chapter » Summary");
assert_eq!(docs[&conclusion]["body"], "I put <HTML> in here!");
Expand Down
Loading

0 comments on commit d6088c8

Please sign in to comment.