archive
/
md-pdf-rs
Archived
1
Fork 0
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

13 lines
282 B
Rust

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