Update custom_preprocessors.rs
This commit is contained in:
parent
5726a8afd6
commit
652eab6e7e
|
@ -36,7 +36,7 @@ fn ask_the_preprocessor_to_blow_up() {
|
||||||
let dummy_book = DummyBook::new();
|
let dummy_book = DummyBook::new();
|
||||||
let temp = dummy_book.build().unwrap();
|
let temp = dummy_book.build().unwrap();
|
||||||
let mut md = MDBook::load(temp.path()).unwrap();
|
let mut md = MDBook::load(temp.path()).unwrap();
|
||||||
md.with_preprecessor(example());
|
md.with_preprocessor(example());
|
||||||
|
|
||||||
md.config
|
md.config
|
||||||
.set("preprocessor.nop-preprocessor.blow-up", true)
|
.set("preprocessor.nop-preprocessor.blow-up", true)
|
||||||
|
@ -52,7 +52,7 @@ fn process_the_dummy_book() {
|
||||||
let dummy_book = DummyBook::new();
|
let dummy_book = DummyBook::new();
|
||||||
let temp = dummy_book.build().unwrap();
|
let temp = dummy_book.build().unwrap();
|
||||||
let mut md = MDBook::load(temp.path()).unwrap();
|
let mut md = MDBook::load(temp.path()).unwrap();
|
||||||
md.with_preprecessor(example());
|
md.with_preprocessor(example());
|
||||||
|
|
||||||
md.build().unwrap();
|
md.build().unwrap();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue