11 lines
285 B
Rust
11 lines
285 B
Rust
pub mod pandoc;
|
|
pub mod process;
|
|
|
|
use config::Config;
|
|
|
|
|
|
pub fn build_input(config: Config, input: String) -> Result<String, String> {
|
|
let html = try!(pandoc::render(config.clone(), input));
|
|
let rendered = try!(process::render(config.clone(), html));
|
|
return Ok(rendered);
|
|
}
|