Trait mdbook::preprocess::Preprocessor [−][src]
pub trait Preprocessor { fn name(&self) -> &str; fn run(&self, ctx: &PreprocessorContext, book: Book) -> Result<Book>; fn supports_renderer(&self, _renderer: &str) -> bool { ... } }
Expand description
An operation which is run immediately after loading a book into memory and before it gets rendered.
Required methods
Provided methods
fn supports_renderer(&self, _renderer: &str) -> bool
[src]
fn supports_renderer(&self, _renderer: &str) -> bool
[src]A hint to MDBook
whether this preprocessor is compatible with a
particular renderer.
By default, always returns true
.
Implementors
impl Preprocessor for CmdPreprocessor
[src]
impl Preprocessor for CmdPreprocessor
[src]impl Preprocessor for IndexPreprocessor
[src]
impl Preprocessor for IndexPreprocessor
[src]impl Preprocessor for LinkPreprocessor
[src]
impl Preprocessor for LinkPreprocessor
[src]