diff --git a/src/build/pandoc.rs b/src/build/pandoc.rs index 10c1891..bba26d0 100644 --- a/src/build/pandoc.rs +++ b/src/build/pandoc.rs @@ -5,7 +5,10 @@ use std::path::PathBuf; use config::{Config, References}; -fn execute_pandoc(input: String, references: Option) -> Result { +fn execute_pandoc( + input: String, + references: Option, +) -> Result { let mut renderer = Pandoc::new(); renderer.set_output_format(pandoc::OutputFormat::Html, vec![]); renderer.set_input_format(pandoc::InputFormat::Markdown, vec![]); diff --git a/src/config/read.rs b/src/config/read.rs index af2d6ba..8dd7c5f 100644 --- a/src/config/read.rs +++ b/src/config/read.rs @@ -64,7 +64,9 @@ pub fn get_references(config: Value) -> Option { } let references = config.get("references").unwrap(); return Some(References { - bibliography: resolve_path(references.get("bibliography").unwrap().as_str().unwrap().into()), + bibliography: resolve_path( + references.get("bibliography").unwrap().as_str().unwrap().into() + ), csl: unpack_csl(references.get("csl").unwrap().as_str().unwrap().into()) }); }