Update comment with rustdoc link
This commit is contained in:
parent
90fa1b4909
commit
47cc57177d
|
@ -199,15 +199,14 @@ impl MDBook {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// You can change the default renderer to another one by using this method.
|
/// You can change the default renderer to another one by using this method.
|
||||||
/// The only requirement is for your renderer to implement the [Renderer
|
/// The only requirement is for your renderer to implement the [`Renderer`
|
||||||
/// trait](../../renderer/renderer/trait.Renderer.html)
|
/// trait](../renderer/trait.Renderer.html)
|
||||||
pub fn with_renderer<R: Renderer + 'static>(&mut self, renderer: R) -> &mut Self {
|
pub fn with_renderer<R: Renderer + 'static>(&mut self, renderer: R) -> &mut Self {
|
||||||
self.renderers.push(Box::new(renderer));
|
self.renderers.push(Box::new(renderer));
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// You can add a new preprocessor by using this method.
|
/// Register a [`Preprocessor`](../preprocess/trait.Preprocessor.html) to be used when rendering the book.
|
||||||
/// The only requirement is for your renderer to implement the Preprocessor trait.
|
|
||||||
pub fn with_preprecessor<P: Preprocessor + 'static>(&mut self, preprocessor: P) -> &mut Self {
|
pub fn with_preprecessor<P: Preprocessor + 'static>(&mut self, preprocessor: P) -> &mut Self {
|
||||||
self.preprocessors.push(Box::new(preprocessor));
|
self.preprocessors.push(Box::new(preprocessor));
|
||||||
self
|
self
|
||||||
|
|
Loading…
Reference in New Issue