mdBook/src/preprocess/mod.rs

16 lines
273 B
Rust
Raw Normal View History

pub use self::links::LinkPreprocessor;
mod links;
2018-01-08 00:21:46 +08:00
use book::Book;
use errors::*;
use std::path::PathBuf;
pub struct PreprocessorContext {
pub src_dir: PathBuf
}
2018-01-08 00:21:46 +08:00
pub trait Preprocessor {
fn run(&self, ctx: &PreprocessorContext, book: &mut Book) -> Result<()>;
}