diff --git a/src/book/mod.rs b/src/book/mod.rs index 374ab9f1..2bf1b032 100644 --- a/src/book/mod.rs +++ b/src/book/mod.rs @@ -199,15 +199,14 @@ impl MDBook { } /// You can change the default renderer to another one by using this method. - /// The only requirement is for your renderer to implement the [Renderer - /// trait](../../renderer/renderer/trait.Renderer.html) + /// The only requirement is for your renderer to implement the [`Renderer` + /// trait](../renderer/trait.Renderer.html) pub fn with_renderer(&mut self, renderer: R) -> &mut Self { self.renderers.push(Box::new(renderer)); self } - /// You can add a new preprocessor by using this method. - /// The only requirement is for your renderer to implement the Preprocessor trait. + /// Register a [`Preprocessor`](../preprocess/trait.Preprocessor.html) to be used when rendering the book. pub fn with_preprecessor(&mut self, preprocessor: P) -> &mut Self { self.preprocessors.push(Box::new(preprocessor)); self