assert_contains_strings(
first.join("index.html"),
- &[r##"href="#some-section" id="some-section""##],
+ &[r##"<h2 id="some-section"><a class="header" href="#some-section">"##],
);
assert_contains_strings(
first.join("nested.html"),
- &[r##"href="#some-section" id="some-section""##],
+ &[r##"<h2 id="some-section"><a class="header" href="#some-section">"##],
);
}
let includes = temp.path().join("book/first/includes.html");
let summary_strings = &[
- r##"<h1><a class="header" href="#summary" id="summary">Summary</a></h1>"##,
+ r##"<h1 id="summary"><a class="header" href="#summary">Summary</a></h1>"##,
">First Chapter</a>",
];
assert_contains_strings(&includes, summary_strings);