damn formatter
This commit is contained in:
parent
811f81bb40
commit
fef80299ca
2 changed files with 7 additions and 2 deletions
|
@ -5,7 +5,10 @@ use std::path::PathBuf;
|
|||
use config::{Config, References};
|
||||
|
||||
|
||||
fn execute_pandoc(input: String, references: Option<References>) -> Result<PandocOutput, PandocError> {
|
||||
fn execute_pandoc(
|
||||
input: String,
|
||||
references: Option<References>,
|
||||
) -> Result<PandocOutput, PandocError> {
|
||||
let mut renderer = Pandoc::new();
|
||||
renderer.set_output_format(pandoc::OutputFormat::Html, vec![]);
|
||||
renderer.set_input_format(pandoc::InputFormat::Markdown, vec![]);
|
||||
|
|
|
@ -64,7 +64,9 @@ pub fn get_references(config: Value) -> Option<References> {
|
|||
}
|
||||
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())
|
||||
});
|
||||
}
|
||||
|
|
Reference in a new issue