Added function to MDBook to swap renderer #10
This commit is contained in:
parent
2c22d11bfd
commit
191f594e78
|
@ -126,6 +126,11 @@ impl MDBook {
|
|||
self
|
||||
}
|
||||
|
||||
pub fn set_renderer(mut self, renderer: Box<Renderer>) -> Self {
|
||||
self.renderer = renderer;
|
||||
self
|
||||
}
|
||||
|
||||
pub fn set_dest(mut self, dest: &Path) -> Self {
|
||||
self.config.set_dest(dest);
|
||||
self
|
||||
|
|
Loading…
Reference in New Issue