diff --git a/src/renderer/html_handlebars/search.rs b/src/renderer/html_handlebars/search.rs index bce0844a28..46327bda40 100644 --- a/src/renderer/html_handlebars/search.rs +++ b/src/renderer/html_handlebars/search.rs @@ -81,10 +81,7 @@ fn render_item( .chain_err(|| "Could not convert HTML path to str")?; let anchor_base = utils::fs::normalize_path(filepath); - let mut opts = Options::empty(); - opts.insert(Options::ENABLE_TABLES); - opts.insert(Options::ENABLE_FOOTNOTES); - let p = Parser::new_ext(&chapter.content, opts); + let p = utils::new_cmark_parser(&chapter.content); let mut in_header = false; let max_section_depth = i32::from(search_config.heading_split_level); diff --git a/src/utils/mod.rs b/src/utils/mod.rs index ace2858998..0f199fb729 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -111,14 +111,18 @@ pub fn render_markdown(text: &str, curly_quotes: bool) -> String { render_markdown_with_base(text, curly_quotes, "") } -pub fn render_markdown_with_base(text: &str, curly_quotes: bool, base: &str) -> String { - let mut s = String::with_capacity(text.len() * 3 / 2); - +pub fn new_cmark_parser(text: &str) -> Parser<'_> { let mut opts = Options::empty(); opts.insert(Options::ENABLE_TABLES); opts.insert(Options::ENABLE_FOOTNOTES); + opts.insert(Options::ENABLE_STRIKETHROUGH); + opts.insert(Options::ENABLE_TASKLISTS); + Parser::new_ext(text, opts) +} - let p = Parser::new_ext(text, opts); +pub fn render_markdown_with_base(text: &str, curly_quotes: bool, base: &str) -> String { + let mut s = String::with_capacity(text.len() * 3 / 2); + let p = new_cmark_parser(text); let mut converter = EventQuoteConverter::new(curly_quotes); let events = p .map(clean_codeblock_headers) diff --git a/tests/dummy_book/src/SUMMARY.md b/tests/dummy_book/src/SUMMARY.md index ee2426e4a8..f14f4e21a5 100644 --- a/tests/dummy_book/src/SUMMARY.md +++ b/tests/dummy_book/src/SUMMARY.md @@ -7,6 +7,7 @@ - [Nested Chapter](first/nested.md) - [Includes](first/includes.md) - [Recursive](first/recursive.md) + - [Markdown](first/markdown.md) - [Second Chapter](second.md) - [Nested Chapter](second/nested.md) diff --git a/tests/dummy_book/src/first/markdown.md b/tests/dummy_book/src/first/markdown.md new file mode 100644 index 0000000000..d65d3d389e --- /dev/null +++ b/tests/dummy_book/src/first/markdown.md @@ -0,0 +1,29 @@ +# Markdown tests + +Tests for some markdown output. + +## Tables + +| foo | bar | +| --- | --- | +| baz | bim | + +## Footnotes + +Footnote example[^1], or with a word[^word]. + +[^1]: This is a footnote. + +[^word]: A longer footnote. + With multiple lines. + Third line. + +## Strikethrough + +~~strikethrough example~~ + +## Tasklisks + +- [X] Apples +- [X] Broccoli +- [ ] Carrots diff --git a/tests/rendered_output.rs b/tests/rendered_output.rs index dd579903ef..f293fb6dc2 100644 --- a/tests/rendered_output.rs +++ b/tests/rendered_output.rs @@ -29,8 +29,9 @@ const TOC_TOP_LEVEL: &[&str] = &[ const TOC_SECOND_LEVEL: &[&str] = &[ "1.1. Nested Chapter", "1.2. Includes", - "2.1. Nested Chapter", "1.3. Recursive", + "1.4. Markdown", + "2.1. Nested Chapter", ]; /// Make sure you can load the dummy book and build it without panicking. @@ -431,6 +432,39 @@ fn no_index_for_print_html() { assert_doesnt_contain_strings(index_html, &[r##"noindex"##]); } +#[test] +fn markdown_options() { + let temp = DummyBook::new().build().unwrap(); + let md = MDBook::load(temp.path()).unwrap(); + md.build().unwrap(); + + let path = temp.path().join("book/first/markdown.html"); + assert_contains_strings( + &path, + &[ + "foo", + "bar", + "baz", + "bim", + ], + ); + assert_contains_strings(&path, &[ + r##"1"##, + r##"2"##, + r##"
1"##, + r##"
2"##, + ]); + assert_contains_strings(&path, &["strikethrough example"]); + assert_contains_strings( + &path, + &[ + "
  • \nApples", + "
  • \nBroccoli", + "
  • \nCarrots", + ], + ); +} + #[cfg(feature = "search")] mod search { use crate::dummy_book::DummyBook; @@ -477,7 +511,7 @@ mod search { assert_eq!(docs[&some_section]["body"], ""); assert_eq!( docs[&summary]["body"], - "Dummy Book Introduction First Chapter Nested Chapter Includes Recursive Second Chapter Nested Chapter Conclusion" + "Dummy Book Introduction First Chapter Nested Chapter Includes Recursive Markdown Second Chapter Nested Chapter Conclusion" ); assert_eq!(docs[&summary]["breadcrumbs"], "First Chapter » Summary"); assert_eq!(docs[&conclusion]["body"], "I put <HTML> in here!"); diff --git a/tests/searchindex_fixture.json b/tests/searchindex_fixture.json index d1e2097074..4172698032 100644 --- a/tests/searchindex_fixture.json +++ b/tests/searchindex_fixture.json @@ -8,6 +8,11 @@ "first/nested.html#some-section", "first/includes.html#includes", "first/includes.html#summary", + "first/markdown.html#markdown-tests", + "first/markdown.html#tables", + "first/markdown.html#footnotes", + "first/markdown.html#strikethrough", + "first/markdown.html#tasklisks", "second.html#second-chapter", "second/nested.html#testing-relative-links-for-the-print-page", "conclusion.html#conclusion" @@ -26,6 +31,31 @@ "title": 1 }, "10": { + "body": 12, + "breadcrumbs": 3, + "title": 1 + }, + "11": { + "body": 2, + "breadcrumbs": 3, + "title": 1 + }, + "12": { + "body": 3, + "breadcrumbs": 3, + "title": 1 + }, + "13": { + "body": 20, + "breadcrumbs": 2, + "title": 2 + }, + "14": { + "body": 13, + "breadcrumbs": 7, + "title": 5 + }, + "15": { "body": 3, "breadcrumbs": 1, "title": 1 @@ -56,19 +86,19 @@ "title": 1 }, "7": { - "body": 14, + "body": 15, "breadcrumbs": 3, "title": 1 }, "8": { - "body": 20, - "breadcrumbs": 2, + "body": 3, + "breadcrumbs": 4, "title": 2 }, "9": { - "body": 13, - "breadcrumbs": 7, - "title": 5 + "body": 4, + "breadcrumbs": 3, + "title": 1 } }, "docs": { @@ -85,9 +115,39 @@ "title": "Introduction" }, "10": { + "body": "Footnote example [1] , or with a word [2] . This is a footnote. A longer footnote. With multiple lines. Third line.", + "breadcrumbs": "First Chapter » Footnotes", + "id": "10", + "title": "Footnotes" + }, + "11": { + "body": "strikethrough example", + "breadcrumbs": "First Chapter » Strikethrough", + "id": "11", + "title": "Strikethrough" + }, + "12": { + "body": "Apples Broccoli Carrots", + "breadcrumbs": "First Chapter » Tasklisks", + "id": "12", + "title": "Tasklisks" + }, + "13": { + "body": "This makes sure you can insert runnable Rust files. fn main() { println!(\"Hello World!\");\n#\n# // You can even hide lines! :D\n# println!(\"I am hidden! Expand the code snippet to see me\");\n}", + "breadcrumbs": "Second Chapter", + "id": "13", + "title": "Second Chapter" + }, + "14": { + "body": "When we link to the first section , it should work on both the print page and the non-print page. Link outside . Some image", + "breadcrumbs": "Second Chapter » Testing relative links for the print page", + "id": "14", + "title": "Testing relative links for the print page" + }, + "15": { "body": "I put <HTML> in here!", "breadcrumbs": "Conclusion", - "id": "10", + "id": "15", "title": "Conclusion" }, "2": { @@ -121,25 +181,25 @@ "title": "Includes" }, "7": { - "body": "Dummy Book Introduction First Chapter Nested Chapter Includes Recursive Second Chapter Nested Chapter Conclusion", + "body": "Dummy Book Introduction First Chapter Nested Chapter Includes Recursive Markdown Second Chapter Nested Chapter Conclusion", "breadcrumbs": "First Chapter » Summary", "id": "7", "title": "Summary" }, "8": { - "body": "This makes sure you can insert runnable Rust files. fn main() { println!(\"Hello World!\");\n#\n# // You can even hide lines! :D\n# println!(\"I am hidden! Expand the code snippet to see me\");\n}", - "breadcrumbs": "Second Chapter", + "body": "Tests for some markdown output.", + "breadcrumbs": "First Chapter » Markdown tests", "id": "8", - "title": "Second Chapter" + "title": "Markdown tests" }, "9": { - "body": "When we link to the first section , it should work on both the print page and the non-print page. Link outside . Some image", - "breadcrumbs": "Second Chapter » Testing relative links for the print page", + "body": "foo bar baz bim", + "breadcrumbs": "First Chapter » Tables", "id": "9", - "title": "Testing relative links for the print page" + "title": "Tables" } }, - "length": 11, + "length": 16, "save": true }, "fields": [ @@ -150,9 +210,41 @@ "index": { "body": { "root": { + "1": { + "df": 1, + "docs": { + "10": { + "tf": 1.0 + } + } + }, + "2": { + "df": 1, + "docs": { + "10": { + "tf": 1.0 + } + } + }, "a": { "df": 0, "docs": {}, + "p": { + "df": 0, + "docs": {}, + "p": { + "df": 0, + "docs": {}, + "l": { + "df": 1, + "docs": { + "12": { + "tf": 1.0 + } + } + } + } + }, "s": { "df": 0, "docs": {}, @@ -199,8 +291,40 @@ } }, "b": { + "a": { + "df": 0, + "docs": {}, + "r": { + "df": 1, + "docs": { + "9": { + "tf": 1.0 + } + } + }, + "z": { + "df": 1, + "docs": { + "9": { + "tf": 1.0 + } + } + } + }, "df": 0, "docs": {}, + "i": { + "df": 0, + "docs": {}, + "m": { + "df": 1, + "docs": { + "9": { + "tf": 1.0 + } + } + } + }, "o": { "df": 0, "docs": {}, @@ -225,18 +349,70 @@ "h": { "df": 1, "docs": { - "9": { + "14": { "tf": 1.0 } } } } + }, + "r": { + "df": 0, + "docs": {}, + "o": { + "c": { + "c": { + "df": 0, + "docs": {}, + "o": { + "df": 0, + "docs": {}, + "l": { + "df": 0, + "docs": {}, + "i": { + "df": 1, + "docs": { + "12": { + "tf": 1.0 + } + } + } + } + } + }, + "df": 0, + "docs": {} + }, + "df": 0, + "docs": {} + } } }, "c": { "a": { "df": 0, "docs": {}, + "r": { + "df": 0, + "docs": {}, + "r": { + "df": 0, + "docs": {}, + "o": { + "df": 0, + "docs": {}, + "t": { + "df": 1, + "docs": { + "12": { + "tf": 1.0 + } + } + } + } + } + }, "u": { "df": 0, "docs": {}, @@ -268,6 +444,9 @@ "r": { "df": 4, "docs": { + "13": { + "tf": 1.0 + }, "2": { "tf": 1.0 }, @@ -276,9 +455,6 @@ }, "7": { "tf": 2.0 - }, - "8": { - "tf": 1.0 } } } @@ -296,10 +472,10 @@ "e": { "df": 2, "docs": { - "4": { + "13": { "tf": 1.0 }, - "8": { + "4": { "tf": 1.0 } } @@ -320,7 +496,7 @@ "s": { "df": 2, "docs": { - "10": { + "15": { "tf": 1.0 }, "7": { @@ -339,7 +515,7 @@ "d": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } }, @@ -381,7 +557,7 @@ "n": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -389,6 +565,29 @@ } }, "x": { + "a": { + "df": 0, + "docs": {}, + "m": { + "df": 0, + "docs": {}, + "p": { + "df": 0, + "docs": {}, + "l": { + "df": 2, + "docs": { + "10": { + "tf": 1.0 + }, + "11": { + "tf": 1.0 + } + } + } + } + } + }, "df": 0, "docs": {}, "p": { @@ -399,7 +598,7 @@ "d": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -428,10 +627,10 @@ "0": { "tf": 1.0 }, - "4": { + "13": { "tf": 1.0 }, - "8": { + "4": { "tf": 1.0 } } @@ -446,13 +645,13 @@ "t": { "df": 3, "docs": { - "2": { + "14": { "tf": 1.0 }, - "7": { + "2": { "tf": 1.0 }, - "9": { + "7": { "tf": 1.0 } } @@ -463,10 +662,42 @@ "n": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } + }, + "o": { + "df": 0, + "docs": {}, + "o": { + "df": 1, + "docs": { + "9": { + "tf": 1.0 + } + }, + "t": { + "df": 0, + "docs": {}, + "n": { + "df": 0, + "docs": {}, + "o": { + "df": 0, + "docs": {}, + "t": { + "df": 1, + "docs": { + "10": { + "tf": 2.0 + } + } + } + } + } + } + } } }, "g": { @@ -512,7 +743,7 @@ "0": { "tf": 1.0 }, - "10": { + "15": { "tf": 1.0 } } @@ -530,7 +761,7 @@ "n": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -542,7 +773,7 @@ "e": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -562,7 +793,7 @@ "g": { "df": 1, "docs": { - "9": { + "14": { "tf": 1.0 } } @@ -625,7 +856,7 @@ "t": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -720,9 +951,12 @@ "df": 0, "docs": {}, "e": { - "df": 1, + "df": 2, "docs": { - "8": { + "10": { + "tf": 1.4142135623730951 + }, + "13": { "tf": 1.0 } } @@ -730,37 +964,61 @@ "k": { "df": 1, "docs": { - "9": { + "14": { "tf": 1.7320508075688772 } } } } }, - "t": { - ";": { + "o": { + "df": 0, + "docs": {}, + "n": { "df": 0, "docs": {}, - "h": { + "g": { "df": 0, "docs": {}, - "t": { + "e": { "df": 0, "docs": {}, - "m": { - "df": 0, - "docs": {}, - "l": { - "&": { - "df": 0, - "docs": {}, - "g": { + "r": { + "df": 1, + "docs": { + "10": { + "tf": 1.0 + } + } + } + } + } + } + }, + "t": { + ";": { + "df": 0, + "docs": {}, + "h": { + "df": 0, + "docs": {}, + "t": { + "df": 0, + "docs": {}, + "m": { + "df": 0, + "docs": {}, + "l": { + "&": { + "df": 0, + "docs": {}, + "g": { "df": 0, "docs": {}, "t": { "df": 1, "docs": { - "10": { + "15": { "tf": 1.0 } } @@ -788,7 +1046,7 @@ "n": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -800,11 +1058,42 @@ "e": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } } + }, + "r": { + "df": 0, + "docs": {}, + "k": { + "d": { + "df": 0, + "docs": {}, + "o": { + "df": 0, + "docs": {}, + "w": { + "df": 0, + "docs": {}, + "n": { + "df": 2, + "docs": { + "7": { + "tf": 1.0 + }, + "8": { + "tf": 1.4142135623730951 + } + } + } + } + } + }, + "df": 0, + "docs": {} + } } }, "df": 0, @@ -824,6 +1113,34 @@ } } } + }, + "u": { + "df": 0, + "docs": {}, + "l": { + "df": 0, + "docs": {}, + "t": { + "df": 0, + "docs": {}, + "i": { + "df": 0, + "docs": {}, + "p": { + "df": 0, + "docs": {}, + "l": { + "df": 1, + "docs": { + "10": { + "tf": 1.0 + } + } + } + } + } + } + } } }, "n": { @@ -854,7 +1171,7 @@ "n": { "df": 1, "docs": { - "9": { + "14": { "tf": 1.0 } } @@ -870,6 +1187,22 @@ "t": { "df": 0, "docs": {}, + "p": { + "df": 0, + "docs": {}, + "u": { + "df": 0, + "docs": {}, + "t": { + "df": 1, + "docs": { + "8": { + "tf": 1.0 + } + } + } + } + }, "s": { "df": 0, "docs": {}, @@ -877,7 +1210,7 @@ "d": { "df": 1, "docs": { - "9": { + "14": { "tf": 1.0 } } @@ -899,7 +1232,7 @@ "e": { "df": 1, "docs": { - "9": { + "14": { "tf": 1.7320508075688772 } } @@ -980,7 +1313,7 @@ "t": { "df": 1, "docs": { - "9": { + "14": { "tf": 1.7320508075688772 } }, @@ -1008,7 +1341,7 @@ "o": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -1020,7 +1353,7 @@ "i": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -1046,7 +1379,7 @@ "t": { "df": 1, "docs": { - "10": { + "15": { "tf": 1.0 } } @@ -1082,7 +1415,7 @@ "l": { "df": 1, "docs": { - "9": { + "14": { "tf": 1.0 } } @@ -1106,7 +1439,7 @@ "l": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -1125,7 +1458,7 @@ "t": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -1147,10 +1480,10 @@ "d": { "df": 2, "docs": { - "7": { + "13": { "tf": 1.0 }, - "8": { + "7": { "tf": 1.0 } } @@ -1171,13 +1504,13 @@ "n": { "df": 3, "docs": { - "3": { + "14": { "tf": 1.0 }, - "5": { + "3": { "tf": 1.0 }, - "9": { + "5": { "tf": 1.0 } } @@ -1191,7 +1524,7 @@ "e": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -1215,7 +1548,7 @@ "t": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -1225,6 +1558,58 @@ } } }, + "t": { + "df": 0, + "docs": {}, + "r": { + "df": 0, + "docs": {}, + "i": { + "df": 0, + "docs": {}, + "k": { + "df": 0, + "docs": {}, + "e": { + "df": 0, + "docs": {}, + "t": { + "df": 0, + "docs": {}, + "h": { + "df": 0, + "docs": {}, + "r": { + "df": 0, + "docs": {}, + "o": { + "df": 0, + "docs": {}, + "u": { + "df": 0, + "docs": {}, + "g": { + "df": 0, + "docs": {}, + "h": { + "df": 1, + "docs": { + "11": { + "tf": 1.4142135623730951 + } + } + } + } + } + } + } + } + } + } + } + } + } + }, "u": { "df": 0, "docs": {}, @@ -1258,7 +1643,7 @@ "e": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -1267,6 +1652,50 @@ } }, "t": { + "a": { + "b": { + "df": 0, + "docs": {}, + "l": { + "df": 1, + "docs": { + "9": { + "tf": 1.0 + } + } + } + }, + "df": 0, + "docs": {}, + "s": { + "df": 0, + "docs": {}, + "k": { + "df": 0, + "docs": {}, + "l": { + "df": 0, + "docs": {}, + "i": { + "df": 0, + "docs": {}, + "s": { + "df": 0, + "docs": {}, + "k": { + "df": 1, + "docs": { + "12": { + "tf": 1.0 + } + } + } + } + } + } + } + } + }, "df": 0, "docs": {}, "e": { @@ -1292,10 +1721,13 @@ "df": 0, "docs": {} }, - "df": 1, + "df": 2, "docs": { - "9": { + "14": { "tf": 1.0 + }, + "8": { + "tf": 1.4142135623730951 } } } @@ -1315,6 +1747,26 @@ } } } + }, + "h": { + "df": 0, + "docs": {}, + "i": { + "df": 0, + "docs": {}, + "r": { + "d": { + "df": 1, + "docs": { + "10": { + "tf": 1.0 + } + } + }, + "df": 0, + "docs": {} + } + } } }, "w": { @@ -1324,12 +1776,20 @@ "df": 0, "docs": {}, "r": { + "d": { + "df": 1, + "docs": { + "10": { + "tf": 1.0 + } + } + }, "df": 0, "docs": {}, "k": { "df": 1, "docs": { - "9": { + "14": { "tf": 1.0 } } @@ -1338,7 +1798,7 @@ "d": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -1353,23 +1813,55 @@ }, "breadcrumbs": { "root": { + "1": { + "df": 1, + "docs": { + "10": { + "tf": 1.0 + } + } + }, + "2": { + "df": 1, + "docs": { + "10": { + "tf": 1.0 + } + } + }, "a": { "df": 0, "docs": {}, - "s": { + "p": { "df": 0, "docs": {}, - "s": { + "p": { "df": 0, "docs": {}, - "e": { - "df": 0, - "docs": {}, - "r": { - "df": 0, - "docs": {}, - "t": { - "!": { + "l": { + "df": 1, + "docs": { + "12": { + "tf": 1.0 + } + } + } + } + }, + "s": { + "df": 0, + "docs": {}, + "s": { + "df": 0, + "docs": {}, + "e": { + "df": 0, + "docs": {}, + "r": { + "df": 0, + "docs": {}, + "t": { + "!": { "(": { "df": 0, "docs": {}, @@ -1402,8 +1894,40 @@ } }, "b": { + "a": { + "df": 0, + "docs": {}, + "r": { + "df": 1, + "docs": { + "9": { + "tf": 1.0 + } + } + }, + "z": { + "df": 1, + "docs": { + "9": { + "tf": 1.0 + } + } + } + }, "df": 0, "docs": {}, + "i": { + "df": 0, + "docs": {}, + "m": { + "df": 1, + "docs": { + "9": { + "tf": 1.0 + } + } + } + }, "o": { "df": 0, "docs": {}, @@ -1428,18 +1952,70 @@ "h": { "df": 1, "docs": { - "9": { + "14": { "tf": 1.0 } } } } + }, + "r": { + "df": 0, + "docs": {}, + "o": { + "c": { + "c": { + "df": 0, + "docs": {}, + "o": { + "df": 0, + "docs": {}, + "l": { + "df": 0, + "docs": {}, + "i": { + "df": 1, + "docs": { + "12": { + "tf": 1.0 + } + } + } + } + } + }, + "df": 0, + "docs": {} + }, + "df": 0, + "docs": {} + } } }, "c": { "a": { "df": 0, "docs": {}, + "r": { + "df": 0, + "docs": {}, + "r": { + "df": 0, + "docs": {}, + "o": { + "df": 0, + "docs": {}, + "t": { + "df": 1, + "docs": { + "12": { + "tf": 1.0 + } + } + } + } + } + }, "u": { "df": 0, "docs": {}, @@ -1469,8 +2045,23 @@ "df": 0, "docs": {}, "r": { - "df": 7, + "df": 12, "docs": { + "10": { + "tf": 1.0 + }, + "11": { + "tf": 1.0 + }, + "12": { + "tf": 1.0 + }, + "13": { + "tf": 1.4142135623730951 + }, + "14": { + "tf": 1.0 + }, "2": { "tf": 1.4142135623730951 }, @@ -1487,7 +2078,7 @@ "tf": 2.23606797749979 }, "8": { - "tf": 1.4142135623730951 + "tf": 1.0 }, "9": { "tf": 1.0 @@ -1508,10 +2099,10 @@ "e": { "df": 2, "docs": { - "4": { + "13": { "tf": 1.0 }, - "8": { + "4": { "tf": 1.0 } } @@ -1532,7 +2123,7 @@ "s": { "df": 2, "docs": { - "10": { + "15": { "tf": 1.4142135623730951 }, "7": { @@ -1551,7 +2142,7 @@ "d": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } }, @@ -1593,7 +2184,7 @@ "n": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -1601,6 +2192,29 @@ } }, "x": { + "a": { + "df": 0, + "docs": {}, + "m": { + "df": 0, + "docs": {}, + "p": { + "df": 0, + "docs": {}, + "l": { + "df": 2, + "docs": { + "10": { + "tf": 1.0 + }, + "11": { + "tf": 1.0 + } + } + } + } + } + }, "df": 0, "docs": {}, "p": { @@ -1611,7 +2225,7 @@ "d": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -1640,10 +2254,10 @@ "0": { "tf": 1.0 }, - "4": { + "13": { "tf": 1.0 }, - "8": { + "4": { "tf": 1.0 } } @@ -1656,8 +2270,20 @@ "df": 0, "docs": {}, "t": { - "df": 6, + "df": 11, "docs": { + "10": { + "tf": 1.0 + }, + "11": { + "tf": 1.0 + }, + "12": { + "tf": 1.0 + }, + "14": { + "tf": 1.0 + }, "2": { "tf": 1.4142135623730951 }, @@ -1673,6 +2299,9 @@ "7": { "tf": 1.4142135623730951 }, + "8": { + "tf": 1.0 + }, "9": { "tf": 1.0 } @@ -1684,10 +2313,42 @@ "n": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } + }, + "o": { + "df": 0, + "docs": {}, + "o": { + "df": 1, + "docs": { + "9": { + "tf": 1.0 + } + }, + "t": { + "df": 0, + "docs": {}, + "n": { + "df": 0, + "docs": {}, + "o": { + "df": 0, + "docs": {}, + "t": { + "df": 1, + "docs": { + "10": { + "tf": 2.23606797749979 + } + } + } + } + } + } + } } }, "g": { @@ -1733,7 +2394,7 @@ "0": { "tf": 1.0 }, - "10": { + "15": { "tf": 1.0 } } @@ -1751,7 +2412,7 @@ "n": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -1763,7 +2424,7 @@ "e": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -1783,7 +2444,7 @@ "g": { "df": 1, "docs": { - "9": { + "14": { "tf": 1.0 } } @@ -1846,7 +2507,7 @@ "t": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -1941,9 +2602,12 @@ "df": 0, "docs": {}, "e": { - "df": 1, + "df": 2, "docs": { - "8": { + "10": { + "tf": 1.4142135623730951 + }, + "13": { "tf": 1.0 } } @@ -1951,13 +2615,37 @@ "k": { "df": 1, "docs": { - "9": { + "14": { "tf": 2.0 } } } } }, + "o": { + "df": 0, + "docs": {}, + "n": { + "df": 0, + "docs": {}, + "g": { + "df": 0, + "docs": {}, + "e": { + "df": 0, + "docs": {}, + "r": { + "df": 1, + "docs": { + "10": { + "tf": 1.0 + } + } + } + } + } + } + }, "t": { ";": { "df": 0, @@ -1981,7 +2669,7 @@ "t": { "df": 1, "docs": { - "10": { + "15": { "tf": 1.0 } } @@ -2009,7 +2697,7 @@ "n": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -2021,11 +2709,42 @@ "e": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } } + }, + "r": { + "df": 0, + "docs": {}, + "k": { + "d": { + "df": 0, + "docs": {}, + "o": { + "df": 0, + "docs": {}, + "w": { + "df": 0, + "docs": {}, + "n": { + "df": 2, + "docs": { + "7": { + "tf": 1.0 + }, + "8": { + "tf": 1.7320508075688772 + } + } + } + } + } + }, + "df": 0, + "docs": {} + } } }, "df": 0, @@ -2045,11 +2764,39 @@ } } } - } - }, - "n": { - "df": 0, - "docs": {}, + }, + "u": { + "df": 0, + "docs": {}, + "l": { + "df": 0, + "docs": {}, + "t": { + "df": 0, + "docs": {}, + "i": { + "df": 0, + "docs": {}, + "p": { + "df": 0, + "docs": {}, + "l": { + "df": 1, + "docs": { + "10": { + "tf": 1.0 + } + } + } + } + } + } + } + } + }, + "n": { + "df": 0, + "docs": {}, "e": { "df": 0, "docs": {}, @@ -2075,7 +2822,7 @@ "n": { "df": 1, "docs": { - "9": { + "14": { "tf": 1.0 } } @@ -2091,6 +2838,22 @@ "t": { "df": 0, "docs": {}, + "p": { + "df": 0, + "docs": {}, + "u": { + "df": 0, + "docs": {}, + "t": { + "df": 1, + "docs": { + "8": { + "tf": 1.0 + } + } + } + } + }, "s": { "df": 0, "docs": {}, @@ -2098,7 +2861,7 @@ "d": { "df": 1, "docs": { - "9": { + "14": { "tf": 1.0 } } @@ -2120,7 +2883,7 @@ "e": { "df": 1, "docs": { - "9": { + "14": { "tf": 2.0 } } @@ -2201,7 +2964,7 @@ "t": { "df": 1, "docs": { - "9": { + "14": { "tf": 2.0 } }, @@ -2229,7 +2992,7 @@ "o": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -2241,7 +3004,7 @@ "i": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -2267,7 +3030,7 @@ "t": { "df": 1, "docs": { - "10": { + "15": { "tf": 1.0 } } @@ -2303,7 +3066,7 @@ "l": { "df": 1, "docs": { - "9": { + "14": { "tf": 1.4142135623730951 } } @@ -2327,7 +3090,7 @@ "l": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -2346,7 +3109,7 @@ "t": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -2368,13 +3131,13 @@ "d": { "df": 3, "docs": { - "7": { - "tf": 1.0 - }, - "8": { + "13": { "tf": 1.4142135623730951 }, - "9": { + "14": { + "tf": 1.0 + }, + "7": { "tf": 1.0 } } @@ -2395,14 +3158,14 @@ "n": { "df": 3, "docs": { + "14": { + "tf": 1.0 + }, "3": { "tf": 1.4142135623730951 }, "5": { "tf": 1.4142135623730951 - }, - "9": { - "tf": 1.0 } } } @@ -2415,7 +3178,7 @@ "e": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -2439,7 +3202,7 @@ "t": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -2449,6 +3212,58 @@ } } }, + "t": { + "df": 0, + "docs": {}, + "r": { + "df": 0, + "docs": {}, + "i": { + "df": 0, + "docs": {}, + "k": { + "df": 0, + "docs": {}, + "e": { + "df": 0, + "docs": {}, + "t": { + "df": 0, + "docs": {}, + "h": { + "df": 0, + "docs": {}, + "r": { + "df": 0, + "docs": {}, + "o": { + "df": 0, + "docs": {}, + "u": { + "df": 0, + "docs": {}, + "g": { + "df": 0, + "docs": {}, + "h": { + "df": 1, + "docs": { + "11": { + "tf": 1.7320508075688772 + } + } + } + } + } + } + } + } + } + } + } + } + } + }, "u": { "df": 0, "docs": {}, @@ -2482,7 +3297,7 @@ "e": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -2491,6 +3306,50 @@ } }, "t": { + "a": { + "b": { + "df": 0, + "docs": {}, + "l": { + "df": 1, + "docs": { + "9": { + "tf": 1.4142135623730951 + } + } + } + }, + "df": 0, + "docs": {}, + "s": { + "df": 0, + "docs": {}, + "k": { + "df": 0, + "docs": {}, + "l": { + "df": 0, + "docs": {}, + "i": { + "df": 0, + "docs": {}, + "s": { + "df": 0, + "docs": {}, + "k": { + "df": 1, + "docs": { + "12": { + "tf": 1.4142135623730951 + } + } + } + } + } + } + } + } + }, "df": 0, "docs": {}, "e": { @@ -2516,10 +3375,13 @@ "df": 0, "docs": {} }, - "df": 1, + "df": 2, "docs": { - "9": { + "14": { "tf": 1.4142135623730951 + }, + "8": { + "tf": 1.7320508075688772 } } } @@ -2539,6 +3401,26 @@ } } } + }, + "h": { + "df": 0, + "docs": {}, + "i": { + "df": 0, + "docs": {}, + "r": { + "d": { + "df": 1, + "docs": { + "10": { + "tf": 1.0 + } + } + }, + "df": 0, + "docs": {} + } + } } }, "w": { @@ -2548,12 +3430,20 @@ "df": 0, "docs": {}, "r": { + "d": { + "df": 1, + "docs": { + "10": { + "tf": 1.0 + } + } + }, "df": 0, "docs": {}, "k": { "df": 1, "docs": { - "9": { + "14": { "tf": 1.0 } } @@ -2562,7 +3452,7 @@ "d": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -2616,13 +3506,13 @@ "r": { "df": 3, "docs": { - "2": { + "13": { "tf": 1.0 }, - "4": { + "2": { "tf": 1.0 }, - "8": { + "4": { "tf": 1.0 } } @@ -2650,7 +3540,7 @@ "s": { "df": 1, "docs": { - "10": { + "15": { "tf": 1.0 } } @@ -2711,6 +3601,34 @@ } } } + }, + "o": { + "df": 0, + "docs": {}, + "o": { + "df": 0, + "docs": {}, + "t": { + "df": 0, + "docs": {}, + "n": { + "df": 0, + "docs": {}, + "o": { + "df": 0, + "docs": {}, + "t": { + "df": 1, + "docs": { + "10": { + "tf": 1.0 + } + } + } + } + } + } + } } }, "i": { @@ -2785,7 +3703,7 @@ "k": { "df": 1, "docs": { - "9": { + "14": { "tf": 1.0 } } @@ -2793,6 +3711,42 @@ } } }, + "m": { + "a": { + "df": 0, + "docs": {}, + "r": { + "df": 0, + "docs": {}, + "k": { + "d": { + "df": 0, + "docs": {}, + "o": { + "df": 0, + "docs": {}, + "w": { + "df": 0, + "docs": {}, + "n": { + "df": 1, + "docs": { + "8": { + "tf": 1.0 + } + } + } + } + } + }, + "df": 0, + "docs": {} + } + } + }, + "df": 0, + "docs": {} + }, "n": { "df": 0, "docs": {}, @@ -2823,7 +3777,7 @@ "e": { "df": 1, "docs": { - "9": { + "14": { "tf": 1.0 } } @@ -2844,7 +3798,7 @@ "t": { "df": 1, "docs": { - "9": { + "14": { "tf": 1.0 } } @@ -2862,7 +3816,7 @@ "l": { "df": 1, "docs": { - "9": { + "14": { "tf": 1.0 } } @@ -2883,7 +3837,7 @@ "d": { "df": 1, "docs": { - "8": { + "13": { "tf": 1.0 } } @@ -2919,6 +3873,58 @@ "df": 0, "docs": {} }, + "t": { + "df": 0, + "docs": {}, + "r": { + "df": 0, + "docs": {}, + "i": { + "df": 0, + "docs": {}, + "k": { + "df": 0, + "docs": {}, + "e": { + "df": 0, + "docs": {}, + "t": { + "df": 0, + "docs": {}, + "h": { + "df": 0, + "docs": {}, + "r": { + "df": 0, + "docs": {}, + "o": { + "df": 0, + "docs": {}, + "u": { + "df": 0, + "docs": {}, + "g": { + "df": 0, + "docs": {}, + "h": { + "df": 1, + "docs": { + "11": { + "tf": 1.0 + } + } + } + } + } + } + } + } + } + } + } + } + } + }, "u": { "df": 0, "docs": {}, @@ -2949,6 +3955,50 @@ } }, "t": { + "a": { + "b": { + "df": 0, + "docs": {}, + "l": { + "df": 1, + "docs": { + "9": { + "tf": 1.0 + } + } + } + }, + "df": 0, + "docs": {}, + "s": { + "df": 0, + "docs": {}, + "k": { + "df": 0, + "docs": {}, + "l": { + "df": 0, + "docs": {}, + "i": { + "df": 0, + "docs": {}, + "s": { + "df": 0, + "docs": {}, + "k": { + "df": 1, + "docs": { + "12": { + "tf": 1.0 + } + } + } + } + } + } + } + } + }, "df": 0, "docs": {}, "e": { @@ -2958,9 +4008,12 @@ "df": 0, "docs": {}, "t": { - "df": 1, + "df": 2, "docs": { - "9": { + "14": { + "tf": 1.0 + }, + "8": { "tf": 1.0 } }