This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
md-pdf-rs/src/build/mod.rs

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);
}