17 lines
No EOL
301 B
Rust
17 lines
No EOL
301 B
Rust
pub use self::links::LinkPreprocessor;
|
|
|
|
mod links;
|
|
|
|
use book::Book;
|
|
use errors::*;
|
|
|
|
use std::path::PathBuf;
|
|
|
|
pub struct PreprocessorContext {
|
|
pub src_dir: PathBuf
|
|
}
|
|
|
|
pub trait Preprocessor {
|
|
fn name(&self) -> &str;
|
|
fn run(&self, ctx: &PreprocessorContext, book: &mut Book) -> Result<()>;
|
|
} |